The data submitted by the form in php is displayed on another page, and the blank space is displayed ??

Source: Internet
Author: User
I am a beginner in PHP. I submitted data to post_data.php using the form in post.html. It is blank and no value is passed. Why ?? The Code is as follows: post.html {code...} the code of post_data.php is as follows: {code...} running result: the page has not passed the message...

I am a beginner in PHP. I submitted data to post_data.php using the form in post.html. It is blank and no value is passed. Why ??
The Code is as follows:
Post.html

     

The post_data.php code is as follows:

 
  "; Echo" z1 = $ a1, z2 = $ a2 "; echo"
  "; Var_dump ($ _ post);} The else {echo" Page has no value !! ";}

Running result:
No page value passed in

File Path:

Please help me see ???

Reply content:

I am a beginner in PHP. I submitted data to post_data.php using the form in post.html. It is blank and no value is passed. Why ??
The Code is as follows:
Post.html

     

The post_data.php code is as follows:

 
  "; Echo" z1 = $ a1, z2 = $ a2 "; echo"
  "; Var_dump ($ _ post);} The else {echo" Page has no value !! ";}

Running result:
No page value passed in

File Path:

Please help me see ???

As instructed by asmair, I modified the code and displayed it successfully.
Post.html is as follows:

    

Post_data.php is as follows:


  "; Echo" z1 = $ a1, z2 = $ a2 "; echo"
  "; Var_dump ($ _ POST);} The else {echo" Page has no value !! ";}?>

I am a newbie and have made low-level mistakes.

Method = "post" cannot contain commas,
$ _ POST [... should be capitalized.

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.