brown2005 Posted August 6, 2009 Share Posted August 6, 2009 <form action="process.php" method="post" onsubmit="return false;" id="myid"> <button type="submit" id="submit-go" onclick="ajax_form('myid','validate.php','receiver');">Submit</button> when I click on the button it checks everything... if errors will show as red. if ok will show as green. what I want to know is once they are all green.. how do I make it submit to the process.php form... thanks Link to comment https://forums.phpfreaks.com/topic/169088-form-validation-and-submitting/ Share on other sites More sharing options...
abazoskib Posted August 6, 2009 Share Posted August 6, 2009 formName.submit(); Link to comment https://forums.phpfreaks.com/topic/169088-form-validation-and-submitting/#findComment-892140 Share on other sites More sharing options...
brown2005 Posted August 6, 2009 Author Share Posted August 6, 2009 where do i put that Link to comment https://forums.phpfreaks.com/topic/169088-form-validation-and-submitting/#findComment-892146 Share on other sites More sharing options...
abazoskib Posted August 6, 2009 Share Posted August 6, 2009 it goes in your javascript where ever the spot is after eveything validates. replace 'formName' with the name attribute you assigned to your form. Link to comment https://forums.phpfreaks.com/topic/169088-form-validation-and-submitting/#findComment-892150 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.