Click to See Complete Forum and Search --> : 'action=' not working in form


maggiemay654
05-02-2003, 10:43 AM
Hello,
I have a form that, when submitted, simply sends the user to the next page within the same website. It is producing a 'page cannot be displayed' error instead, & you have to hit 'refresh' in order for the proper page to display.
Within the 'form' tag, the action line reads: 'ACTION="orderform.htm" '. I have also tried using the entire path, including 'http://www.website.com/page.htm' and simply 'www.website.com/page.htm' and they all produce the same error page. Any ideas?
Here's the whole script, in case it's helpful:
<HTML>
<HEAD><TITLE> Title</TITLE>
<script language="javascript" type="text/javascript">
function checkCheckBox(f) {
if (f.charge1.checked == false || f.charge2.checked == false || f.charge3.checked == false) {
alert("Please check all boxes to continue.");
return false;
}
else {
return true;
}
}
</script>
</HEAD><BODY>

<form name="shipping" ACTION="order2.htm" METHOD="POST" onsubmit="return checkCheckBox(this)">
<input type="checkbox" name="charge1" value="0"> Description 1 <p>
<input type="checkbox" name="charge2" value="0"> Description 2 <p>
<input type="checkbox" name="charge3" value="0"> Description 3 <p>
<input type=submit value="submit">
</form></BODY></html>

Thank you so much!

pyro
05-02-2003, 10:46 AM
That code works fine for me. There must be some other error...

maggiemay654
05-02-2003, 11:10 AM
No ideas then why the proper page won't display without pressing 'refresh'?

pyro
05-02-2003, 11:50 AM
Not with what you've provided so far. How about a link to a live version, so I can see what's going on?

maggiemay654
05-02-2003, 12:24 PM
Thanks Pyro, I just figured it out - the 'Method' needed to be 'GET'.
I appreciate your help!