reg.php

来自「完整的用户注册、验证、管理模块。」· PHP 代码 · 共 62 行

PHP
62
字号
<? 
session_start();
session_register("rname");
session_register("rpass");
session_register("remail");
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>新用户注册</title>
</head>

<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"><LINK 
href="../js/css.css" type=text/css rel=stylesheet>

<center><br>
<? include ("templates/header.php") ?>
  <form name="form1" method="post" action="post.php">
    <table width="600" border="0" cellspacing="0">
      <!--DWLayoutTable-->
      <tr> 
        <td width="198" height="18" bgcolor="#3CB9DD"><font size="2">请输入您的注册信息:</font></td>
        <td width="398" valign="top" bgcolor="#3CB9DD"><!--DWLayoutEmptyCell-->&nbsp;</td>
      </tr>
      <tr> 
        <td height="20" bgcolor="#CCFFFF"><div align="center"><font size="2">请填写您的用户名:</font></div></td>
        <td valign="top" bgcolor="#CCFFFF"> <font size="2"> 
          <input name="rname" type="text" id="rname">
          (最好是英文字母或数字等)</font></td>
      </tr>
      <tr> 
        <td height="20" bgcolor="#CCFFFF"><div align="center"><font size="2">请填写您的密&nbsp;&nbsp;码:</font></div></td>
        <td valign="top" bgcolor="#CCFFFF"> <font size="2"> 
          <input name="rpass" type="text" id="rpass">
          (最好是英文字母或数字等)</font></td>
      </tr>
      <tr> 
        <td height="20" bgcolor="#CCFFFF"><div align="center"><font size="2">请重复您的密&nbsp;&nbsp;码:</font></div></td>
        <td valign="top" bgcolor="#CCFFFF"> <font size="2"> 
          <input name="rerpass" type="text" id="rerpass">
          (请重复输入您的密码)</font></td>
      </tr>
      <tr> 
        <td height="18" bgcolor="#CCFFFF"><div align="center"><font size="2">请填写您的E-MAIL:</font></div></td>
        <td valign="top" bgcolor="#CCFFFF"> <input name="remail" type="text" id="remail"></td>
      </tr>
      <tr bgcolor="#3CB9DD"> 
        <td height="23" colspan="2" valign="top"> <p align="center"> 
            <input type="submit" name="Submit" value="提 交">
            &nbsp;&nbsp; 
            <input type="reset" name="Submit2" value="重 置">
          </p></td>
      </tr>
    </table>
</form>
  <p>
    <? include ("templates/footer.php") ?>
  </p>
</center>
</body>
</html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?