LocalHero
07-08-2005, 04:16 AM
I have my site set up with two images and text. I want all three to submit the same form. I thought this would work:
<form name="form1" method="post" action="imagestemplateC.php">
<input type="hidden" name="simage" value="bomb">
<a href="javascript: document.form1.submit()">
<img src="../shirtimages/bomb.jpg" /><br />
<img src="../shirtimages/customize.png" width="158" height="18" /><br />
<span class="style33">Bomb</span></a> <br />
</form>
Any ideas? Does it look like it should work? The error I get in IE is "object doesn't support this property or method". In Mozilla I get - document.form1.submit is not a function.
<form name="form1" method="post" action="imagestemplateC.php">
<input type="hidden" name="simage" value="bomb">
<a href="javascript: document.form1.submit()">
<img src="../shirtimages/bomb.jpg" /><br />
<img src="../shirtimages/customize.png" width="158" height="18" /><br />
<span class="style33">Bomb</span></a> <br />
</form>
Any ideas? Does it look like it should work? The error I get in IE is "object doesn't support this property or method". In Mozilla I get - document.form1.submit is not a function.