PDA

View Full Version : 'Submit' Action as http Link?



mras
06-26-2007, 08:19 AM
Is there a way to express the 'submit' button with it's inputs as a link?

For example http://www.bluehost.com/bluemail=sendtoemail?address@myaddress.com or something like that?

charlesgan
06-26-2007, 09:14 AM
the form INPUT can be in button or image.
because a link will be href.. and will not capture the click to post the form

areidmtm
06-26-2007, 09:34 AM
Yes you can use a link to submit a form



<form name="frmName" action="test.php" method="post">
<input type="text" name="testname" />
<a href="javascript:document.frmName.submit();">Submit</a>
</form>


But in order to use bluemail, it has to be in the POST variables, so you will have to have the information be in a form. You can however use a hidden form to POST the information