Is there a DOM way of validating forms; one that placed inline; wont un validate your XHTML? >From: Brian Cummiskey <Brian at hondaswap.com> >Reply-To: "thelist at lists.evolt.org" <thelist at lists.evolt.org> >To: "thelist at lists.evolt.org" <thelist at lists.evolt.org> >Subject: Re: [thelist] JS Form Validation >Date: Thu, 01 Jul 2004 20:03:52 -0400 > >function ValidateForm() >{ > if(IsEmpty(myForm.realname)) > { > alert('You have not entered a first name') > document.myform.realname.focus(); > return false; > } > > else > { > myForm.action = "mailto.php"; > myForm.method = "post"; > myForm.submit(); > alert("Hi. it worked"); > return (true); > } >} ></script> > ></head> ><body> ><form name="myForm" action=""> > > <input type="hidden" name="recipient" value="blahblah at blah.com"> > > <input type="hidden" name="subject" value="TEST"> > > <input type="hidden" name="redirect" >value="http://www.roaringforkvehicles.com/thankyou.html"> > <input type="text" name="realname" >size="5"> > <input type="button" name="submit" >value="submit" onclick="ValidateForm();"> ></form> > > >-- >* * Please support the community that supports you. * * >http://evolt.org/help_support_evolt/ > >For unsubscribe and other options, including the Tip Harvester and archives >of thelist go to: http://lists.evolt.org Workers of the Web, evolt ! _________________________________________________________________ Smart Saving with ING Direct earn 5.25% p.a. variable rate: http://ad.au.doubleclick.net/clk;7249209;8842331;n?http://www.ingdirect.com.au/burst6offer.asp?id=8