View Full Version : How do I turn this into a link?

08-26-2007, 01:14 AM
<FORM name="USERFAVOUR" method="post" action="{$baseurl}/my_favour.php">
<input type="hidden" name="rvid" value="{$answers[i].VID}">
<input type="submit" name="removfavour" value="Remove Favorite"> </FORM>

I am trying to turn this form button into a link and dont know how. It is calling on my_favour.php to remove something. Please help.

Thank you.

08-26-2007, 01:18 AM
Probably because you used the post method.

08-26-2007, 01:20 AM
So when you use the post method it cant be just a link?

08-26-2007, 01:42 AM
I don't think so. :S Because posting, Well when you post something on a forum it is sending something to the sites server. So, Post would probably mean posting it to the link.

08-26-2007, 01:52 AM
That cant be true because you're not posting it to the button. If a button is essentially a link, I cant see why a post button cant be just a link.

08-26-2007, 02:10 AM
This is a javascript question, not a php one.

<a href="#" onclick="this.form.submit()">Submit form</a>

I think that's right, not used JS for a long time