PDA

View Full Version : Text for 'Submit Button' on Form


steve55
09-06-2002, 11:23 AM
Hi,


I have the following code on a page, but would like to remove the image I am currently using for the submit button and replace it with some text instead, which would be clicked to submit the form..


<FORM action="../results.asp?Search=true" method="POST" id="form1" name="form1">

<DIV align="left">

<INPUT type="hidden" name="Area" value="">
<INPUT type="hidden" name="SFF_Category_Reference" value="blank">

<INPUT type="image" value="Graduate" name="submit13" id=submit1 src="images/send.gif" width="125" height="25" border="0" target="main" alt="SEARCH NOW">
</DIV>
</FORM>


I'm not sure what to change the input type to to get just text (and not in a textarea box etc..)

requestcode
09-06-2002, 01:21 PM
Try this:
<A HREF="#" onClick="document.form1.submit()">Search Now</A>

steve55
09-06-2002, 02:42 PM
Thanks but I tried that and it didn't work - however after a bit of alteration (I want five such forms on one page) the code from the following link worked:

http://webdevelopment.developersnetwork.com/Articles.asp?Article=47