if(email=""||email.indexIOf('@')==-1)||email.indexOf('.'==-1){这句你写错了吧  if(email=""||email.indexOf('@')==-1||email.indexOf('.')==-1){

解决方案 »

  1.   

    <td width="55%>
       <input type="text" name="year" size="4">
       年
    改为:<td width="55%">把后引号加上   <td width="55%>
       <input type="text" name="email" size="20">同上<input type="radio" name="gender" value="男" selected>
    改为: <input name="gender" type="radio" value="男" checked />
      

  2.   

    谢谢各位大侠,改对了可是改了一下语句:
    if(email==""||email.indexOf('@')==-1||email.indexOf('.')==-1){
           alert("电子邮箱格式不正确!");
           return false;
    还是不能对邮箱名进行判断
      

  3.   

    submit按扭需要添加 onclick= check()之类的吧好象.记不太清了.
    等高手来解决把.
      

  4.   

    <input type=submit name="Submit" onclick = "return check()" value="提交">
    你改下这句代码看看吧!
    如果还是不行的好好差下代码是不是代码里面的有些细微的错误。
    username=document.form1.username.value;
    pwd1=document.form1.pwd1.value;
    pwd2=document.form1.pwd2.value;
    year=document.form1.year.value;
    month=document.form1.month.value;
    day=document.form1.day.value;
    email=document.form1.email.value;
    interest=document.form1.interest.value;
    看看文本框中的属性name属性是否与你上面写的一致!