Javascript-data on the front-end page is uploaded to the PHP background for processing and then transferred back for display

Source: Internet
Author: User
, The page selects the form to pass the value to the PHP background, and then the processed data is returned to the foreground page through smarty. At this time, the foreground page has been refreshed, how can I continue to select the selected status and traverse the following Qualified Data? This can be achieved without AJAX...

, The page selects the form to pass the value to the PHP background, and then the processed data is returned to the foreground page through smarty. At this time, the foreground page has been refreshed, how can I continue to select the selected status and traverse the following Qualified Data?
Can AJAX be used to achieve this effect?
After thinking for a long time, it seems that AJAX is not needed, but the ability is limited, the specific failure to get out, hope the high people give pointers.

Reply content:

, The page selects the form to pass the value to the PHP background, and then the processed data is returned to the foreground page through smarty. At this time, the foreground page has been refreshed, how can I continue to select the selected status and traverse the following Qualified Data?
Can AJAX be used to achieve this effect?
After thinking for a long time, it seems that AJAX is not needed, but the ability is limited, the specific failure to get out, hope the high people give pointers.

Exist in cookie

GET these values in the background (whether GET or POST), then assign the assign to smarty, and finally obtain the next echo in the smarty template. Where are your doubts?
In addition, such data is not recommended for personal cookie or session

After passing parameters through the url, the backend obtains the parameters and the front-end determines the echo. We do not recommend storing cookies.

Related Article

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.