Changeset 62
- Timestamp:
- Apr 23, 2009, 11:54:04 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
hadoop-register/new_register.php
r60 r62 17 17 return false; 18 18 } 19 if ( (document.myForm.password.value) != (document.myForm.checkPassword.value) ) 20 { 21 alert("密碼不相符"); 22 return false; 23 } 19 24 20 if (document.myForm.email.value.length == 0) 25 var mailString = document.myForm.email.value; 26 var pattern=/^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/; 27 if (!pattern.exec(mailString) ) 21 28 { 22 alert( "E-mail不可空白");29 alert(mailString + " : E-mail 格式錯誤"); 23 30 return false; 24 31 } … … 53 60 </HEAD> 54 61 55 <BODY> 56 <P ALIGN="center"> Hadoop 帳號申請表格 </P> 57 <FORM ACTION="adduser.php" METHOD="post" NAME="myForm"> 58 <TABLE WIDTH="40%" ALIGN="center"> 59 <TR> 60 <TD ALIGN="center"> 61 <FONT COLOR="#3333FF">帳號:</FONT> 62 <INPUT NAME="user" TYPE="text" SIZE="20"> 63 </TD> 64 </TR> 65 <TR> 66 <TD ALIGN="center"> 67 <FONT COLOR="#3333FF">密碼:</FONT> 68 <INPUT NAME="password" TYPE="password" SIZE="20"> 69 </TD> 70 </TR> 71 <TR> 72 <TD ALIGN="center"> 73 <FONT COLOR="#3333FF">E-mail:</FONT> 74 <INPUT NAME="email" TYPE="text" SIZE="30"> 75 </TD> 76 </TR> 77 <TR> 78 <TD ALIGN="center"> 79 <FONT COLOR="#3333FF">姓名:</FONT> 80 <INPUT NAME="name" TYPE="text" SIZE="20"> 81 </TD> 82 </TR> 83 <TR> 84 <TD ALIGN="center"> 85 <FONT COLOR="#3333FF">電話:</FONT> 86 <INPUT NAME="telephone" TYPE="text" SIZE="20"> 87 </TD> 88 </TR> 89 <TR> 90 <TD ALIGN="center"> 91 <FONT COLOR="#3333FF">單位:</FONT> 92 <INPUT NAME="department" TYPE="text" SIZE="30"> 93 </TD> 94 </TR> 95 <TR> 96 <TD ALIGN="center"> 97 <FONT COLOR="#3333FF">用途:</FONT> 98 <INPUT NAME="purpose" TYPE="text" SIZE="30"> 99 </TD> 100 </TR> 101 <TR> 102 <TD ALIGN="center"> 103 <INPUT TYPE="button" VALUE="送出" onClick="check_data()"> 104 <INPUT TYPE="reset" VALUE="重填"> 105 </TD> 106 </TR> 107 </TABLE> 108 </FORM> 62 <BODY> 63 <P ALIGN="center"> Hadoop 帳號申請表格 </P> 64 <FORM ACTION="adduser.php" METHOD="post" NAME="myForm"> 65 <TABLE WIDTH="40%" ALIGN="center"> 66 <TR> 67 <TD ALIGN="center"> 68 <FONT COLOR="#3333FF">帳號:</FONT> 69 <INPUT NAME="user" TYPE="text" SIZE="20"> 70 </TD> 71 </TR> 72 <TR> 73 <TD ALIGN="center"> 74 <FONT COLOR="#3333FF">密碼:</FONT> 75 <INPUT NAME="password" TYPE="password" SIZE="20"> 76 </TD> 77 </TR> 78 <TR> 79 <TR> 80 <TD ALIGN="center"> 81 <FONT COLOR="#3333FF">確認密碼:</FONT> 82 <INPUT NAME="checkPassword" TYPE="checkPassword" SIZE="20"> 83 </TD> 84 </TR> 85 <TD ALIGN="center"> 86 <FONT COLOR="#3333FF">E-mail:</FONT> 87 <INPUT NAME="email" TYPE="text" SIZE="30"> 88 </TD> 89 </TR> 90 <TR> 91 <TD ALIGN="center"> 92 <FONT COLOR="#3333FF">姓名:</FONT> 93 <INPUT NAME="name" TYPE="text" SIZE="20"> 94 </TD> 95 </TR> 96 <TR> 97 <TD ALIGN="center"> 98 <FONT COLOR="#3333FF">電話:</FONT> 99 <INPUT NAME="telephone" TYPE="text" SIZE="20"> 100 </TD> 101 </TR> 102 <TR> 103 <TD ALIGN="center"> 104 <FONT COLOR="#3333FF">單位:</FONT> 105 <INPUT NAME="department" TYPE="text" SIZE="30"> 106 </TD> 107 </TR> 108 <TR> 109 <TD ALIGN="center"> 110 <FONT COLOR="#3333FF">用途:</FONT> 111 <INPUT NAME="purpose" TYPE="text" SIZE="30"> 112 </TD> 113 </TR> 114 <TR> 115 <TD ALIGN="center"> 116 <INPUT TYPE="button" VALUE="送出" onClick="check_data()"> 117 <INPUT TYPE="reset" VALUE="重填"> 118 </TD> 119 </TR> 120 </TABLE> 121 </FORM> 109 122 <P ALIGN="center"> </P> 110 123 </BODY> 111 124 </HTML> 112 125
Note: See TracChangeset
for help on using the changeset viewer.