<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>Insert title here</title><script type="text/javascript">? function checkNull(form1){ ?/*判斷是否有空內(nèi)容*/ ?for(i-0;i<form.length;i++){ ?if(form.elements[i]="null"){ ?alert("很抱歉,"+form.elements[i].title+"不能為空!"); ?form.elements[i].focus(); ?return false; ?} ?}? ? ?/*判斷兩次密碼是否一致*/ ?var pwd1=document.getElementById("pwd1_id").value; ?var pwd2=document.getElementById("pwd2_id").value; ?if(pwd1!=pwd2){ ?alert("兩次密碼不一致,請確認!"); ?return false; ?} ?/*判斷電話號碼是否有效*/ ?var phone=document.getElementById("phone_id").value; ?var regExpression=/^(86)?((13\d{9})|(15[0,1,2,3,4,5,6,7,8,9]\d{8})|(18[0,5,6,7,8,9]\d{8}))$/; ?var obExp=new RegExp(regexpression); ?if(obExp.test(phone)==false){ ?alert("您輸入的號碼有誤!"); ?return false; ?} ?/*判斷電子郵箱是否有效*/ var email=document.getElementById("email_id").value; var regExpression=/\w+([-+.]\w+)*@\w([-.]\w+)*\.\w+([-.]\w+)*/; if(obExp.test(email)==false){ ?alert("您輸入的郵箱地址不正確!"); ?return false;? }? }</script></head><body><form action="form1" method="post" action="" onSubmit="return checkNull(form1)"><table width="296" ? border="0" ? align="center" ?cellpadding="0" ?cellspacing="1" ?bgcolor="#333333" ><tr><td colspan="2" bgcolor="#eeeeee">.用戶注冊</td></tr><tr><td width="200"align="center" bgcolor="#FFFFFF">用戶名:</td><td width="384"bgcolor="#FFFFFF"><input name="user" type="text" id="user_id" title="用戶名">*</td></tr><tr><td align="center" bgcolor="#FFFFFF">密碼:</td><td bgcolor="#FFFFFF"><input name="pwd" type="password" id="pwd1_id" title="密碼">*</td></tr><tr><td align="center" bgcolor="#FFFFFF">確認密碼:</td><td bgcolor="#FFFFFF"><input name="pwd2" type="password" id="pwd2_id" title="確認密碼">*</td></tr><tr><td align="center" bgcolor="#FFFFFF">電話:</td><td bgcolor="#FFFFFF"><input name="phone" type="text" id="phone_id" title="電話">*</td></tr><tr><td align="center" bgcolor="#FFFFFF">郵箱:</td><td bgcolor="#FFFFFF"><input name="email" type="text" id="email_id" title="郵箱">*</td></tr><tr><td align="center" bgcolor="#FFFFFF"> </td><td bgcolor="#FFFFFF"><input name="Submit" type="submit" class="btn_grey" value="提交"> <input name="Submit2" type="reset" class="btn_grey" value="重置"></td></tr></table></form></body></html>
各位大哥幫忙看看,登陸頁面沒有問題,點擊提交就出現(xiàn)了404錯誤
qq_Internationa_1
2017-08-07 17:53:36