📄 reg.asp
字号:
<script language='javascript'>
function checkform(){
if(document.forma.name.value==''){
alert('请填写你在本站的用户名');
document.forma.name.focus();
return false;
}
if(document.forma.tel.value==''){
alert('请填写在该站注册时的用户名');
document.forma.tel.focus();
return false;
}
if(document.forma.number.value==''){
alert('请填写您的QQ号码');
document.forma.number.focus();
return false;
}
if(document.forma.email.value!="@"){
if(document.forma.email.value.indexOf("@") == -1 || document.forma.email.value.indexOf(".") == -1){
alert('请填写一个正确的E-Mail');
document.forma.email.focus();
return false;
}
}
if(document.forma.address.value==''){
alert('请填写你注册的网站地址!!');
document.forma.address.focus();
return false;
}
return true;
}
</script>
<div align="center"><div id="form">
<fieldset>
<form method=post action='../order/adversave.asp' name=forma onsubmit='return checkform();'>
<table width="500" border="0" align="center">
<tr>
<td width="200" align="left"><p><label>本站用户名:</label></p></td>
<td width="300" align="left"><input type='text' size='15' maxlength='25' name='name' autocomplete="off" value="" tabindex="1" /></td>
</tr>
<tr>
<td width="200" align="left"><p><label>所注册网站地址:</label></p></td>
<td width="300" align="left"><input type='text' size='15' maxlength='50' name='address' autocomplete="off" value="http://" tabindex="1" /></td>
</tr>
<tr>
<td width="200" align="left"><p><label>在该站注册用户名:</label></p></td>
<td width="300" align="left"><input type='text' size='15' maxlength='25' name='tel' autocomplete="off" value="" tabindex="1" /></td>
</tr>
<tr>
<td width="200" align="left"><p><label>电子邮箱:</label></p></td>
<td width="300" align="left"><input type='text' size='15' maxlength='25' name='email' autocomplete="off" value="@" tabindex="1" /></td>
</tr>
<tr>
<td width="200" align="left"><p><label>QQ 号码:</label></p></td>
<td width="300" align="left"><input type='text' size='15' maxlength='25' name='number' autocomplete="off" value="" tabindex="1" /></td>
</tr>
<tr> <td colspan="2" align="right"><input type="submit" value="提交验证" name="button" class="submit" tabindex="4" /></td>
</tr>
</table>
</form>
</fieldset></div></div>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -