I want to make the descriptive text around a form link also open the form. I want to make it so you can click on “Some Text Here” (below) and open the form on somesomite.com just as if you clicked on the image below this text (somebut.gif, below)
<DIV style="position: absolute; top:10px; right:10px; width:70px; height:25px">
<font color="white"><b>Some Text Here<b></font>
</div>
<DIV style="position: absolute; top:50px; right:10px; width:70px; height:25px">
<form action="https://www.somesite.com/cgi-bin/something" method="post">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="image" src="https://www.somesite.com/somebut.gif" border="0" name="submit">
<input type="hidden" name="encrypted" value="-----BEGIN PKCS7-----LONG_KEY...>
</form>
</div>
Thanks
Give the form a name and use JavaScript to submit the form. You should also stay away from
<font>and<b>tags; they’re deprecated.If you prefer to use anchor tags to get all of the CSS pseudo-classes, etc., then you can do this instead of the bare
<strong>tag:Finally, if you don’t want to use JavaScript, then you’ll have to do some rearranging of your markup and add some CSS, like so:
Add
<div>tags as desired.