Page 1 of 1

Link instead of submit button, possible?

Posted: Thu Oct 27, 2005 7:30 am
by vigour
I wonder if I can use a link (href) instead of a submit button when I build a html form?

<body>
<form name="form1" method="post" action="my_file.php">
<input type="submit" name="Submit" value="Submit">
</form>
</body>
</html>

Posted: Thu Oct 27, 2005 7:36 am
by Grim...
Use [ CODE ] tags, and this isn't about PHP, but hey ho.

Code: Select all

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