Forum Moderators: mack
My question is this: Is there a way to make that same button just go straight to the next page if there are no errors?
It's a pretty in-depth registration
Best practice for us (and others) is put all the information that you absolutely MUST have (and pare that down to a minimum) on the first page. After the first page has been successfully submitted, get the other (option) information.
Anyway, to answer your question, yes, your button can both validate and submit. The general form is this:
<form action=script.pl method=post name=myform onsubmit="return validate()">
...
<script type=text/javascript>
function validate() {
if (testPassed) {return true}
else { return false;}
}
Finally, let me suggest that you use more descriptive subject titles when posting here. "Registration Page issues" doesn't give one much of a clue as to what your problem unless they open the page. I suggest putting as much of your question as you can into the two subject lines provided.
Hope this helps.