Today, when I wrote a small example, when php submitted it to php, I wrote $ _ POST as $ _ post. after a long time, I still didn't get the front-end value. Well, write this blog post and paste this simple example below as an accumulation of power! Register. php:
The code is as follows:
Registration page
Request. php
The code is as follows:
$ Username = $ _ POST ['username'];
$ Name = $ _ POST ['name'];
$ Pwd = $ _ POST ['pwd'];
$ Email = $ _ POST ['email '];
// Print_r ($ username );
If (! Empty ($ username ))
{
Echo "the information you entered is:
\ N ";
Echo "username: $ username
\ N ";
Echo "name: $ name
\ N ";
Echo "Password: $ pwd
\ N ";
Echo "email: $ email
\ N ";
}
Print_r ($ _ POST)
// Echo "aaaa ";
?>
Of course, you can also write the request and regiser. php together.
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