PHP Gets the value of jquery Ajax pass, how to set this value as a global variable in PHP

Source: Internet
Author: User
PHP Gets the value of jquery Ajax pass, how to set this value as a global variable in PHP


Reply to discussion (solution)

The variables passed in are in the hyper-global array, please describe your needs

I want to use the value that is passed by Ajax in another function, to set the post value to a global variable and call it directly.

When Ajax is used by default, the async option is true, which is a different request, in which case the asynchronous request cannot pass the return value to the global variable and set async as the synchronous request, that is, async=false;

The post value is inherently global, and you can use it directly in the function.

Knot paste, Thank you "together" moderator, a word awakened in the dream of people Ah

  • 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.