PHP url_php tips for capturing the top two pages by hiding form controls

Source: Internet
Author: User

I have encountered similar problems in my learning process:
For example, backstage is want to make this kind of son:

But the reality is this:

Workaround:
By hiding form controls

<input type= "hidden" name= "Prevurl" value= "<?php echo $_server[' http_referer '"]?> ">

So the value of $_server[' Http_referer ' appears to be temporarily deposited in $_post[prevurl].

In fact, the principle of this method is to put the previous URL through the Post method to the other place, but this post is the current page

In later development, the section of the new article will have a select tag, and if you enable the disabled of the SELECT tag, you will not post the value you selected, so I once again use the hidden cheat method, secretly submitted once, tried and true.

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.