I need your help … I have a page with several FORMS
In each FORM, have a SUBMIT button to make the data …
I have a button with these settings:
<Input type = “submit” name = “Submit” id = “myButton” value = “Register”>
What I want is that after sending the form data 1, disable the button so as not to send the same form twice during the stay on the page to send the remaining forms page.
thank you
Do the forms submit to the same .php page that displays the forms, or to a separate page?
After a form is successfully submitted, you could set a variable to mark it as complete. Then as you generate your HTML to send back to the browser you can check the variable for each form… if the form has been completed, disable the submit button:
<input type="submit" name="Submit" id="myButton" value="Register" <?php if($form1_complete) echo 'disabled' ?>>