Hi:<br>
I am using this code to validate a form on the page. It works with IE5 but not with Netscape. <br>
<br>
-----------------<br>
<SCRIPT language="javascript"><br>
<!--<br>
function checknull() {<br>
if (info.fname.value == ""{<br>
alert("Please Enter Your First Name."<br>
info.fname.focus();<br>
return false;<br>
}<br>
if (info.lname.value == ""{<br>
alert("Please Enter Your Last Name."<br>
info.lname.focus();<br>
return false;<br>
}<br>
}<br>
--><br>
</SCRIPT><br>
<br>
<!-- This is the form that calls it: --><br>
<FORM name=info action="sb-1-userdata.asp?GO=true&cid=<%=cid%>" method=POST onsubmit="return checknull()"><br>
<br>
<INPUT type=text name="fname" maxlength="30" size=30><br>
<br>
<INPUT type=text name="lname" maxlength="30" size=30><br>
<br>
<INPUT type=submit value=Proceed><br>
</FORM><br>
-----------------<br>
<br>
Any clues as to why this does not work in Netscape? It is the most basic validation! <br>
<br>
TIA<br>
<br>
Steve Jaeger<br>
<A HREF="mailto:steve@iconimage.com">steve@iconimage.com</A><br>
<A HREF=" TARGET="_new"><br>
I am using this code to validate a form on the page. It works with IE5 but not with Netscape. <br>
<br>
-----------------<br>
<SCRIPT language="javascript"><br>
<!--<br>
function checknull() {<br>
if (info.fname.value == ""{<br>
alert("Please Enter Your First Name."<br>
info.fname.focus();<br>
return false;<br>
}<br>
if (info.lname.value == ""{<br>
alert("Please Enter Your Last Name."<br>
info.lname.focus();<br>
return false;<br>
}<br>
}<br>
--><br>
</SCRIPT><br>
<br>
<!-- This is the form that calls it: --><br>
<FORM name=info action="sb-1-userdata.asp?GO=true&cid=<%=cid%>" method=POST onsubmit="return checknull()"><br>
<br>
<INPUT type=text name="fname" maxlength="30" size=30><br>
<br>
<INPUT type=text name="lname" maxlength="30" size=30><br>
<br>
<INPUT type=submit value=Proceed><br>
</FORM><br>
-----------------<br>
<br>
Any clues as to why this does not work in Netscape? It is the most basic validation! <br>
<br>
TIA<br>
<br>
Steve Jaeger<br>
<A HREF="mailto:steve@iconimage.com">steve@iconimage.com</A><br>
<A HREF=" TARGET="_new"><br>