Php gets the value passed by jqueryajax. how can I set this value as a global variable in php?

Source: Internet
Author: User
Php gets the value passed by jqueryajax. in php, how can I set this value to the global variable php to get the value passed by jquery ajax? how can I set this value to the global variable in php?


Reply to discussion (solution)

All input variables are in the ultra-Global Array. Please describe your requirements

I want to use the received AJAX value in other functions. I want to set the POST value to a global variable and call it directly.

When ajax is used by default, the async option is true, that is, an asynchronous request. in this case, the asynchronous request cannot pass the return value to the global variable and set async to a synchronous request, that is, async = false;

The POST value is originally global and can be used directly in functions.

Close the post. thanks to the moderator for "join together ".

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.