JavaScript won't submit my form!
Posted: Sun Aug 07, 2005 1:36 pm
Hi guys.
Can you tell me why's that JavaScript won't submite the form? It used to work...
Here, take a look:
And here's the HTML code I'm using:
Can you tell what's making the problem?
Thanks.
Can you tell me why's that JavaScript won't submite the form? It used to work...
Here, take a look:
Code: Select all
function expired(){
frm=document.forms[0];
frm.Button1[0].disabled=true;
frm.Button1[1].disabled=true;
frm.submit();
//Put here the next page
}Code: Select all
<HTML>
<HEAD>
<TITLE>Timer</TITLE>
<Script src="timer.js"></Script>
</HEAD>
<BODY onLoad="settimes()">
<FORM name="tom" action="test.php" method="POST">
<INPUT TYPE="radio" VALUE="Button 1" NAME="Button1" UNCHECKED>
<INPUT TYPE="radio" VALUE="Button 2" NAME="Button1" UNCHECKED>
<input type="submit" name="submit">
</FORM>
</BODY>
</HTML>Thanks.