I have a form that people can fill out on a webpage. Once they fill it out they have a choice of three buttons to press. The buttons call a javascript to check that all the boxes are filled in. If they arent then the user is sent back to the field to fill it in correctly. This works fine. BUT no matter what i change (button to a submit or vice versa, adding the different 1.php, 2.php 3.php into the javascript or the onsubmit of the form or the button etc) nothing seems to work. I can put the first location (1.php) into the forms action and call the javascript from the onsubmit (of the form) but even when i have these set it the onclick="document.forms.frmForm.action='2.php';" etc it still calls from 1.php
The java script is the same for all the buttons but the buttons SHOULD send the data to 1.php or 2.php or 3.php depending what the user clicks... the best i can get it is to all submit to 1.php or nothing at all.
Any help would be appreciated asap
Thanks
