Ask a Question

Source: Internet
Author: User
Could you tell me a question? My php file has two pages and the first page passes a URLa. php? From page 2 to page 2, I have defined a text box & lt; inputtype = & quot; text & quot; name = & quot; aa & quot; & gt. The problem is that if I receive a question
My php file has two pages. The first page passes a URL a. php? Re = 2 to second page
On the second page, I defined Text box.

The problem is that if I get the value in aa, I cannot get the refresh value of re = 2. I am using the GET method. How to get the value passed on the external page and the value on this page at the same time in PHP.

Page 1

Jump

This 2 is selected based on the variable, not a fixed value

Page 2



I want to input a value in the input box and then output the re value and the value in the input box.

I have been thinking for a long time, but I cannot ask for advice.

------ Solution --------------------
What do you mean by not only getting B. PHP? Re = 2. The value

Then you can directly store 2 in a hidden domain.


------ Solution --------------------
You can submit this page in B. php.
B. php
If ($ _ POST ["submit"]) // it is submitted not from the-point link.
{
Echo "the value of aa is". $ _ POST ["aa"];
Echo "the value of re is". $ _ POST ["re"];
}
?>

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.