Mar 24, 2005 #1 paulbradley Programmer Joined Oct 9, 2002 Messages 158 Location 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.
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.
Mar 24, 2005 #2 sleipnir214 Programmer Joined May 6, 2002 Messages 15,350 Location US No. Data sent on a hyperlink can only be sent by GET. Want the best answers? Ask the best questions! TANSTAAFL!! Upvote 0 Downvote
No. Data sent on a hyperlink can only be sent by GET. Want the best answers? Ask the best questions! TANSTAAFL!!
Mar 24, 2005 Thread starter #3 paulbradley Programmer Joined Oct 9, 2002 Messages 158 Location GB cheers Upvote 0 Downvote
Mar 25, 2005 #4 DRJ478 IS-IT--Management Joined Aug 10, 2001 Messages 2,264 Location US 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. Upvote 0 Downvote
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.