Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Make a Link or a picture Behave as a Form Submit Button

Status
Not open for further replies.

Knexo10

IS-IT--Management
Feb 12, 2002
20
0
0
AU
Is it possible to have a normal text link behave the same as a submit button does on a form?
I want to post the form but when I click on a link not on a form button.
 
<form name=&quot;webform2&quot; action=&quot;poll.asp&quot;><br>
<input type=&quot;text&quot; name=&quot;tb1&quot;><br>
<input type=&quot;radio&quot; name=&quot;vote&quot; value=&quot;1-exc&quot;>Excellent<br>
<input type=&quot;radio&quot; name=&quot;vote&quot; value=&quot;2-vgo&quot;>Very Good<br>
<input type=&quot;radio&quot; name=&quot;vote&quot; value=&quot;3-ave&quot;>Average<br>
<input type=&quot;radio&quot; name=&quot;vote&quot; value=&quot;4-poo&quot;>Poor<br>
<a href=&quot;javascript:webform2.submit()&quot;>submit via link</a>
</form>

Hope this helps,
Erik <!-- My sport: Boomerang throwing !!
This year I will participate at the World Championships in Germany. (!! Many Happy Returns !! -->
 
<form name=&quot;frmTest&quot; action=&quot;foo.asp&quot; method=&quot;post&quot;>
<input type=&quot;image&quot; src=&quot;yourimage.gif&quot; onClick=&quot;frmTest.submit()&quot;>
<a href=&quot;frmTest.submit()&quot;>Submit</a>
</form>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top