I need help changing the form action based on which button is clicked.
Form
<form action="addline.php" method="post" id="rundataform">
.....
<input value="Select1" type="submit" class="button1" > // click this to run addline.php
<input value="Select2" type="submit" class="button2" > // click this to run addline2.php
</form>
I have tried using JavaScript but couldn't get it to work. Can someone provide me with a working code snippet?
Kris