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>
Link instead of submit button, possible?
Moderator: General Moderators
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>