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 Quote Link to comment Share on other sites More sharing options...
abazoskib Posted August 6, 2009 Share Posted August 6, 2009 formName.submit(); Quote Link to comment Share on other sites More sharing options...
brown2005 Posted August 6, 2009 Author Share Posted August 6, 2009 where do i put that Quote Link to comment 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.