A basic knowledge form of PHP is submitted. Register. php: Copy the code as follows: htmlheadmetahttp-equivContent-Typecontenttexthtml; charsetgb2312title registration page titleheadbodyformactionrequest. phpmet 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 authorization code is as follows: html head meta http-equiv = "Content-Type" content = "text/html; charset = gb2312 "title registration page/title/head body form action =" request. php "met...