ASP制作建议留言板
2014-04-14 15:18 木洛~影 阅读(173) 评论(0) 收藏 举报<html> <head> <meta http-equiv="Content-Type" content="text/html;charset=gb2312"> <title></title> </head> <body> <font name="myloginform" method="post" action="hycheck.asp"> <table width="50%" height="400" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#56B0EF"> <tr> <td colspan="2"><div align="center"><font color="#055FAA" size="7" face="楷书"><b>留言登录系统</b></font> <hr> </div></td> <tr> <td colspan="2"><marquee direction="left"><font color="white"> 欢迎使用留言系统,不带数据库版</font></marquee> :</td> </tr> <tr> <td cospan="2"><table width="280" height="200" align="center" cellpadding="0" cellspacing="0"> 用户名:<input name="usename" type="text" size="20"></td> </tr> <tr> <td>密码: <input name="password" type="password" size="20"></td> </tr> <tr> <td> <input type="submit" name="Submit" value="确定" onclick="return check()"> <input type="reset" name="Submit2" value="取消"></td> </tr> </table></td> </tr> </table> </form> <script language="Javascript"> function check(){ if (document.myloginform.usename.value==""){ alert("用户名不能为空!"); return false; } if (document.myloginform.password.value==""){ alert("密码不能为空!"); return false; } if (document.myloginform.password.value.length<5){ alert("密码不能少于 5位"); return false; } document.myloginform.submit(); }
</script> </body> </html>
弄了两天的留言板出错了。。。竟然一直都没找出来错误。。
浙公网安备 33010602011771号