Register. php:
Copy codeThe 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" method = "post" name = "registForm">
<Table width = "330" border = "0" align = "center" cellpadding = "5" bgcolor = "# eeeeee">
<Tr>
<Td width = "40%"> User name: </td>
<Td> <input name = "username" type = "text" id = "username"/> </td>
</Tr>
<Tr>
<Td> name: </td>
<Td> <input name = "name" type = "text" id = "name"/> </td>
</Tr>
<Tr>
<Td> password: </td>
<Td> <input name = "pwd" type = "text" id = "pwd"/> </td>
</Tr>
<Tr>
<Td> Email: </td>
<Td> <input name = "email" type = "text" id = "email"/> </td>
</Tr>
<Tr>
<Td colspan = "2" align = "center">
<Input type = "submit" value = "submit" name = "submit"/>
<Input type = "reset" value = "reset" name = "button"/>
</Td>
</Tr>
</Table>
</Form>
</Body>
</Html>
Request. php
Copy codeThe Code is as follows:
<? Php
$ Username = $ _ POST ['username'];
$ Name = $ _ POST ['name'];
$ Pwd = $ _ POST ['pwd'];
$ Email = $ _ POST ['email '];
// Print_r ($ username );
If (! Empty ($ username ))
{
Echo "the information you entered is: <br> \ n ";
Echo "username: $ username <br> \ n ";
Echo "name: $ name <br> \ n ";
Echo "Password: $ pwd <br> \ n ";
Echo "email: $ email <br> \ n ";
}
Print_r ($ _ POST)
// Echo "aaaa ";
?>
</PRE>
</DIV>
Of course, you can also write the request and regiser. php together.