Using AJAX to pass variable to PHP and retrieve those using AJAX again

前端 未结 5 1968
别跟我提以往
别跟我提以往 2020-11-30 06:41

I want to pass values to a PHP script so i am using AJAX to pass those, and in the same function I am using another AJAX to retrieve those values.

The problem is th

5条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-11-30 07:35

    In your PhP file there's going to be a variable called $_REQUEST and it contains an array with all the data send from Javascript to PhP using AJAX.

    Try this: var_dump($_REQUEST); and check if you're receiving the values.

提交回复
热议问题