About the value transfer between pages. $ _ POST [] is used, but cannot be passed.

Source: Internet
Author: User
Value transfer between pages. You can use $ _ POST [], but you still cannot pass the course at the beginning. I don't know where the problem is. please kindly advise! The code is as follows: HTMLcode... & lt; formaction = & quot; results. php & quot; method = & quot; post & quot; & gt; value transfer between Choose pages. $ _ POST [] is used, but cannot be passed.
At the beginning, I didn't know where the problem was. please kindly advise!
The code is as follows:
HTML code
  ......

The first page above is HTML, and the following is PHP
PHP code
  ...
  


There is input content on the HTML page, but the PHP page cannot receive it all the time,
Only show this error message
1. my Baidu results are
Some people say they want to open register_globals. isn't all the data in my program that needs to be obtained from the form become a global variable?
Are you sure you want to clear it after use?
2. if register_globals is not enabled, is there no problem in using POST for the materials I consulted? Why cannot I get the value?
3. submit the form. In most of the examples I have read, only action = "XXX. PHP "is enough. Why can't I write it? I need to add an onClick button in the submit button to jump to the page?
4. is it my PHP or APACHE configuration problem?


------ Solution --------------------
You set onClick = "window. location = 'ults. php'" ~~ I tried OK here.

HTML code

------ Solution --------------------
HTML code
Script function subForm () {document. testForm. action = "results. php "; document. testForm. submit ();} // If location. href will jump directly to the page. unless a parameter is added, it will also receive the script with get.
------ Solution --------------------
Discussion

HTML code


Choose Search Type:

Author ......------ Solution --------------------

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.