⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 register.php

📁 十大精典PHP项目开发全程案例+代码
💻 PHP
字号:
<style type="text/css">
<!--
#reg .right_td #chk_name {
	background-color: #FFFFFF;
	height: 15px;
	width: 75px;
	border: 0px solid #FFFFFF;
	font-size: 12px;
	color: #990000;
}
-->
</style>
<script language="javascript">
function chkname(){
	name = document.reg.name.value;
	if(name==""){
		alert("请输入用户昵称");
		document.reg.name.focus();
		return false;
	}else{
		open("chkname.php?name="+name+"" ,"CHK","height=50,width=200,scrollbars=no,top=200,left=200");
	}
}
</script>
<table width="500" border="1" cellspacing="0" cellpadding="0">
	<tr>
		<td><table width="500" border="0" cellspacing="0" cellpadding="0">
 		<form id="reg" name="reg" method="post" action="register_chk.php">
 			<tr>
   			   <td width="50" rowspan="18" align="center" valign="top">&nbsp;</td>
   			   <td height="20" colspan="2" align="center" valign="top" class="top_td">&nbsp;</td>
   			   <td width="50" rowspan="18" align="center" valign="top">&nbsp;</td>
  			</tr>
  			<tr>
      			<td width="100" height="20" align="right" valign="middle" class="left_td" scope="col">用户名:</td>
   			  <td align="left" valign="middle" class="right_td" scope="col"><input type="text" name="name" id="name" class="usual" onmouseover="this.style.backgroundColor='#deebef'" onmouseout="this.style.backgroundColor=''"/><span class="STYLE1"> *</span>[<input type="button" name="chk_name" id="chk_name" value="检测用户名" onclick="return chkname()"/>]</td>
    		</tr>
    		<tr>
      			<td width="100" height="20" align="right" valign="middle" class="left_td">密码:</td>
   			  <td align="left" valign="middle" class="right_td"><input type="password" name="password" id="password" class="usual" onmouseover="this.style.backgroundColor='#deebef'" onmouseout="this.style.backgroundColor=''"/><span class="STYLE1"> *</span>(最少3位)</td>
    		</tr>
    		<tr>
      			<td width="100" height="20" align="right" valign="middle" class="left_td">确认密码:</td>
   			  <td align="left" valign="middle" class="right_td"><input type="password" name="t_password" id="t_password" class="usual"onmouseover="this.style.backgroundColor='#deebef'" onmouseout="this.style.backgroundColor=''" /><span class="STYLE1"> *</span></td>
    		</tr>
    		<tr>
      			<td width="100" height="20" align="right" valign="middle" class="left_td">密码提示问题:</td>
   			  <td align="left" valign="middle" class="right_td"><input type="text" name="question" id="question" class="usual" onmouseover="this.style.backgroundColor='#deebef'" onmouseout="this.style.backgroundColor=''"/><span class="STYLE1"> *</span></td>
    		</tr>
    		<tr>
      			<td width="100" height="20" align="right" valign="middle" class="left_td">问题答案:</td>
   			  <td align="left" valign="middle" class="right_td"><input type="text" name="answer" id="answer" class="usual" onmouseover="this.style.backgroundColor='#deebef'" onmouseout="this.style.backgroundColor=''"/><span class="STYLE1"> *</span></td>
    		</tr>
    		<tr>
      			<td width="100" height="20" align="right" valign="middle" class="left_td">真实姓名:</td>
      			<td align="left" valign="middle" class="right_td"><input type="text" name="realname" id="realname" class="usual" onmouseover="this.style.backgroundColor='#deebef'" onmouseout="this.style.backgroundColor=''"/></td>
    		</tr>
    		<tr>
      			<td width="100" height="20" align="right" valign="middle" class="left_td">性别:</td>
      			<td align="left" valign="middle" class="right_td">
				<input name="sex" id="sex" type="radio" value="man" checked />男
				<input name="sex" id="sex" type="radio" value="male"/>女
				</td>
    		</tr>
    		<tr>
      			<td width="100" height="20" align="right" valign="middle" class="left_td">年龄:</td>
     			<td align="left" valign="middle" class="right_td"><input type="text" name="age" id="age" class="usual" onmouseover="this.style.backgroundColor='#deebef'" onmouseout="this.style.backgroundColor=''"/></td>
    		</tr>
    		<tr>
      			<td width="100" height="20" align="right" valign="middle" class="left_td">身份证号:</td>
      			<td align="left" valign="middle" class="right_td"><input type="text" name="numbers" id="numbers" class="usual" onmouseover="this.style.backgroundColor='#deebef'" onmouseout="this.style.backgroundColor=''"/></td>
    		</tr>
			<tr>
				<td width="100" height="20" align="right" valign="middle" class="left_td">职业:</td>
      			<td align="left" valign="middle" class="right_td"><input type="text" name="job" id="job" class="usual" onmouseover="this.style.backgroundColor='#deebef'" onmouseout="this.style.backgroundColor=''"/></td>
    		</tr>
    		<tr>
      			<td width="100" height="20" align="right" valign="middle" class="left_td">E-mail:</td>
      			<td align="left" valign="middle" class="right_td"><input type="text" name="email" id="email" class="usual" onmouseover="this.style.backgroundColor='#deebef'" onmouseout="this.style.backgroundColor=''"/></td>
    		</tr>
    		<tr>
      			<td width="100" height="20" align="right" valign="middle" class="left_td">联系电话:</td>
      			<td align="left" valign="middle" class="right_td"><input type="text" name="phone" id="phone" class="usual" onmouseover="this.style.backgroundColor='#deebef'" onmouseout="this.style.backgroundColor=''"/></td>
    		</tr>
    		<tr>
      			<td width="100" height="20" align="right" valign="middle" class="left_td">联系地址:</td>
      			<td align="left" valign="middle" class="right_td"><input type="text" name="address" id="address" class="usual" onmouseover="this.style.backgroundColor='#deebef'" onmouseout="this.style.backgroundColor=''"/></td>
    		</tr>
    		<tr>
      			<td width="100" height="20" align="right" valign="middle" class="left_td">QQ:</td>
      			<td align="left" valign="middle" class="right_td"><input type="text" name="qq" id="qq" class="usual"onmouseover="this.style.backgroundColor='#deebef'" onmouseout="this.style.backgroundColor=''" /></td>
    		</tr>
   			<tr>
     			 <td width="100" height="20" align="right" valign="middle" class="left_td">个人主页:</td>
      			<td align="left" valign="middle" class="right_td"><input type="text" name="http" id="http" class="usual" onmouseover="this.style.backgroundColor='#deebef'" onmouseout="this.style.backgroundColor=''"/></td>
   		 	</tr>
    		<tr>
      			<td height="30" colspan="2" align="center" valign="middle" class="bottom_td">
				<input name="regi" type="submit" id="regi" value="注册" onclick="return reg_chk();" />(<span class="STYLE1">*</span>号为必填项)
   			    <input name="reset" type="reset" id="reset" value="重置" /></td>
    		</tr></form></table>
	</td></tr></table>

⌨️ 快捷键说明

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