Home Articles FAQs XREF Games Software Instant Books About Feedback Search Site-Map
irt.org logo

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

irt.org | Knowledge Base | JavaScript | Link | Q622 [ previous next ]

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

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?'


Provide feedback ...
AddThis Social Bookmark Button

Provide feedback ... AddThis Social Bookmark Button


Last Updated: 6th July 2009. Maintained by: Martin Webb and Michel Plungjan
irt.org liability, trademark, document use, privacy statement and software licensing rules apply.
Copyright © 1996-2009 irt.org, All Rights Reserved.