Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org
#

Q622 How can a hypertext link pass data using the POST method, and not the GET method?

You are here: irt.org | FAQ | JavaScript | Link | Q622 [ previous next ]

The only way you can submit data using POST is by a form. You can combine a hidden form with a hypertext link to perform this though:

<FORM METHOD="POST" NAME="myForm">
<INPUT TYPE="HIDDEN" NAME="NAME1" VALUE="value1">
<INPUT TYPE="HIDDEN" NAME="NAME2" VALUE="value2">
</FORM>

<A HREF="#" onClick="document.myForm.submit();return false">text link</A>

Feedback on 'Q622 How can a hypertext link pass data using the POST method, and not the GET method?'

©2018 Martin Webb