Link instead of submit button, possible?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
vigour
Forum Newbie
Posts: 18
Joined: Thu Sep 29, 2005 2:04 am

Link instead of submit button, possible?

Post 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>
Grim...
DevNet Resident
Posts: 1445
Joined: Tue May 18, 2004 5:32 am
Location: London, UK

Post 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>
Post Reply