|
Hello Joel, i copied & pasted your code into one page and both work. So your error has to be elsewhere. As i'm off for the weekend now, i post the working code. Have you lost a </head> or something like that? Check your page at validator.w3.org, sometimes it's a typo that makes the page go berserk. <html><head><script language="JavaScript"> <!-- function check1() { if (document.updTerms1.BEGDATE.value == "" ) { alert("Beginning Date1 cannot be blank."); return false ; } else if (document.updTerms1.ENDDATE.value == "" ) { alert("Ending Date1 cannot be blank."); return false ; } else if (document.updTerms1.AMOUNT.value == "" ) { alert("Amount1 cannot be blank."); return false ; } else { document.updTerms1.submit(); } } //--> </script> <script language="JavaScript"> <!-- function check2() { if (document.updTerms2.BEGDATE.value == "" ) { alert("Beginning Date2 cannot be blank."); return false ; } else if (document.updTerms2.ENDDATE.value == "" ) { alert("Ending Date2 cannot be blank."); return false ; } else if (document.updTerms2.AMOUNT.value == "" ) { alert("Amount2 cannot be blank."); return false ; } else { document.updTerms2.submit(); } } //--> </script> </head><body> <form name="updTerms1" method="post" action="/members/SUPUPDTERM"> <input type="text" name="BEGDATE" value="11/1/2002" /> <input type="text" name="ENDDATE" value="10/30/2003" /> <input type="text" name="AMOUNT" value="65.00" /> <input type="button" value="Update" onClick="check1()" /> </form> <form name="updTerms2" method="post" action="/members/SUPUPDTERM"> <input type="text" name="BEGDATE" value="1/23/2003" /> <input type="text" name="ENDDATE" value="12/31/2003" /> <input type="text" name="AMOUNT" value="12.00" /> <input type="button" value="Update" onClick="check2()" /> </form> </body></html> -- best regards Anton Gombkötö http://www.avenum.com
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.