Need help with html....
Need help with html....
Can you guys take a look at this page and see what i need to edit to get the form to work? when i click submit it doesnt do anything....thanks. link
I think your javascript is killing it. You can't just access MyForm as if it were a Javascript variable, as you seem to be doing. You need to use <tt>document.all["MyForm"]</tt> on IE, and <tt>document.getElementByID("MyForm")</tt> on NS/Mozilla. You also need to change the <tt>name="MyForm"</tt> to <tt>id="MyForm"</tt> for this to work (and also be HTML4.01-strict compliant).
Here is a short piece of code you can stick at the beginning of your <SCRIPT> to (hopefully) get it to work:
<pre>
if(document.layers)
{
MyForm = document.getElementByID("MyForm");
}
else if(document.all)
{
MyForm = document.all["MyForm"];
}
else
{
// Could not determine the user's browser
}
</pre>
Here is a short piece of code you can stick at the beginning of your <SCRIPT> to (hopefully) get it to work:
<pre>
if(document.layers)
{
MyForm = document.getElementByID("MyForm");
}
else if(document.all)
{
MyForm = document.all["MyForm"];
}
else
{
// Could not determine the user's browser
}
</pre>