Pass the same page post and get value to the form form

Source: Internet
Author: User
Pass the value of the same page post and get to the form form
PHP Code
  
   $rkno = $_get[' Rkno '); $type = $_get[' type ']; $kw _info = $_post[' Kw_info '];


These are the values obtained from the previous page. The values for $rkno and $type are the values obtained from the previous page of the previous page. These values are then put into a form:
PHP Code
  
   
  
   


The value of $_post in the page is passed, but the $kw_info value in the form is not obtained. May I ask what the reason is?




------Solution--------------------
We recommend that you use $_request to get the values for both $_get and $_post.
------Solution--------------------
You give out the form codeWhat is the final output in this? The result is clear.
------Solution--------------------
discuss

Reference:

I don't know what you're talking about.

Well, if there are a,b,c three pages, $_get[' rkno '],$_get[' type ' is from a page via GET to the B page, and then from the B page POST a $_post[' kw_info ', connected to the previous $_get[' Rkno '],$_ The value of get[' type '] is passed to the C page. At this point both the $_get and $_post values can be taken. I would like to put this three values into a form on the C page ...

------Solution--------------------
C page Get $kw_info no value? Output a bit:
echo $kw _info = $_post[' kw_info ');
------Solution--------------------
He should have entered a value on page A, submitted a B page, and b There is no choice, there is no value, then go to the C page, using post to get the value, suggest on page b $kw_ Info get URL, then $kw_info = $_post[' Kw_info ']; Change to $kw_info = $_request[' kw_info '];

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.