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 Andrzejek on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Use hyperlink rather than button?

Status
Not open for further replies.

paulbradley

Programmer
Oct 9, 2002
158
GB
I want to send something by POST to another page but want the link to be a hyperlink not a submit button - is there a way of doing this?

Thanks.
 
You can use client side code with an onClick event.
That method relies on the visitor having JavaScript enabled, but it works.
Code:
<a href="#" onClick="document.myform.submit();">Send data</a>
Technically this is not a hyperlink anymore, so sleipnir214 answered your question correctly.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top