<html> <html> <head> <title>ThaiCreate.Com Tutorials</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head> <body> <script language="javascript"> function fncSubmit() { if(document.form1.txtUsername.value == "") { alert('Please input Username'); document.form1.txtUsername.focus(); return false; } if(document.form1.txtPassword.value == "") { alert('Please input Password'); document.form1.txtPassword.focus(); return false; } if(document.form1.txtConPassword.value == "") { alert('Please input Confirm Password'); document.form1.txtConPassword.focus(); return false; } if(document.form1.txtPassword.value != document.form1.txtConPassword.value) { alert('Confirm Password Not Match'); document.form1.txtConPassword.focus(); return false; } if(document.form1.txtName.value == "") { alert('Please input Name'); document.form1.txtName.focus(); return false; } document.form1.submit(); } </script> <form name="form1" method="post" action="save_register.php" OnSubmit="return fncSubmit();"> Register Form <br> <table width="400" border="1" style="width: 400px"> <tbody> <tr> <td width="125"> Username</td> <td width="180"> <input name="txtUsername" type="text" id="txtUsername" size="20"> </td> </tr> <tr> <td> Password</td> <td><input name="txtPassword" type="password" id="txtPassword"> </td> </tr> <tr> <td> Confirm Password</td> <td><input name="txtConPassword" type="password" id="txtConPassword"> </td> </tr> <tr> <td> Name</td> <td><input name="txtName" type="text" id="txtName" size="35"></td> </tr> <tr> <td> Status</td> <td> <select name="ddlStatus" id="ddlStatus"> <option value="ADMIN">ADMIN</option> <option value="USER">USER</option> </select> </td> </tr> </tbody> </table> <br> <input type="submit" name="Submit" value="Save"> </form> </body> </html>
ช่วยกันสนับสนุนรักษาเว็บไซต์ความรู้แห่งนี้ไว้ด้วยการสนับสนุน Source Code 2.0 ของทีมงานไทยครีเอท