Changeset 60 for hadoop-register
- Timestamp:
- Apr 23, 2009, 10:12:36 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
hadoop-register/new_register.php
r57 r60 1 1 <HTML> 2 <HEAD> 3 <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8"> 4 <TITLE> Hadoop 帳號 </TITLE> 5 <SCRIPT LANGUAGE="javascript"> 6 function check_data() 7 { 8 if (document.myForm.user.value.length == 0) 9 { 10 alert("帳號不可空白"); 11 return false; 12 } 13 if (document.myForm.password.value.length == 0) 14 { 15 alert("密碼不可空白"); 16 return false; 17 } 18 if (document.myForm.email.value.length == 0) 19 { 20 alert("E-mail不可空白"); 21 return false; 22 } 23 if (document.myForm.name.value.length == 0) 24 { 25 alert("姓名不可空白"); 26 return false; 27 } 28 if (document.myForm.telephone.value.length == 0) 29 { 30 alert("電話不可空白"); 31 return false; 32 } 33 if (document.myForm.department.value.length == 0) 34 { 35 alert("單位不可空白"); 36 return false; 37 } 38 if (document.myForm.purpose.value.length == 0) 39 { 40 alert("用途不可空白"); 41 return false; 42 } 43 myForm.submit(); 44 } 45 </SCRIPT> 46 </HEAD> 2 <HEAD> 3 <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8"> 4 <TITLE> Hadoop 帳號 </TITLE> 5 <SCRIPT LANGUAGE="javascript"> 6 function check_data() 7 { 8 if (document.myForm.user.value.length == 0) 9 { 10 alert("帳號不可空白"); 11 return false; 12 } 13 14 if (document.myForm.password.value.length == 0) 15 { 16 alert("密碼不可空白"); 17 return false; 18 } 19 20 if (document.myForm.email.value.length == 0) 21 { 22 alert("E-mail不可空白"); 23 return false; 24 } 25 26 if (document.myForm.name.value.length == 0) 27 { 28 alert("姓名不可空白"); 29 return false; 30 } 31 32 if (document.myForm.telephone.value.length == 0) 33 { 34 alert("電話不可空白"); 35 return false; 36 } 37 38 if (document.myForm.department.value.length == 0) 39 { 40 alert("單位不可空白"); 41 return false; 42 } 43 44 if (document.myForm.purpose.value.length == 0) 45 { 46 alert("用途不可空白"); 47 return false; 48 } 49 50 myForm.submit(); 51 } 52 </SCRIPT> 53 </HEAD> 47 54 48 55 <BODY>
Note: See TracChangeset
for help on using the changeset viewer.