Form via POST by HREF

[Total: 0    Average: 0/5]

This shows how to submit a form via POST upon a click on a HREF.

Body Code:

<form name="ef1" method=POST>
<input name="t1" type="text" value="<default>">
<input type="submit" value="go do it">
</form>
<a href="javascript:document.ef1.submit()">submit it</a>
<BR>There is no action specified - so it doesn't really do anything here...

Times Viewed: 0

Leave a Reply

Your email address will not be published. Required fields are marked *