急需要一段有要求的asp注册网页代码!!

来源:百度知道 编辑:UC知道 时间:2024/06/03 02:30:13
因为不懂ASP和数据库,所以请大哥大姐帮忙写一段注册代码,要求如下:
1,有username和password两个变量。username需要是邮箱,有基本的检查表单功能,username和password插入users表。
2,username在注册时需要同时提交给多个数据表,有users,information,activity等等(这几个表在一个数据库,且数据库已连接好)

呵呵,好像没了。
谢谢!如能详细,小弟不胜感激!!!急用!

你把这段代码改一改:
<!--#include file="inc/Md5.asp" -->
<script type="text/javascript">
<!--
function addcheck()
{
if(checkspace(document.form1.username.value)) {
alert("用户名不能为空!");
document.form1.username.focus();
return false;
}
if(document.form1.username.value.length<5 || document.form1.username.value.length>20) {
alert("用户名填写不正确,请填写5到20个字符的用户名!");
document.form1.username.focus();
return false;
}
if(checkspace(document.form1.password.value)) {
alert("密码不能为空!");
document.form1.password.focus();
return false;
}
if(document.form1.password.value.length<6 || document.form1.password.value.length>16) {
alert("密码填写不正确,请填写6到16个字符的用户名!");
document.form1.password.focus();
return false;
}

if(checkspace(document.form1.PwdConfirm.value)) {
alert(&qu