Form validation conflict
<p>I am validating a user registration forum using php. The validation occurs once the user hits the submit button, all the POST variables are then checked and once they are all validated, a <code>$valid</code> variable is set to true indicating that all the registration fields are completed correctly, and users may now proceed to the next registration step.</p>

<p>I am running into a problem because the validation occurs only after the user hits the submit button, so whether or not the form is completed correctly, when a user hits the submit button, they are brought back to a blank looking forum (with a boolean <code>$valid</code> variable set behind the scenes), then once the users hit the submit button a SECOND time they are brough to the second registration step IF and only IF the <code>$valid</code> variable is set to true.</p>

<p>I am trying to fix this by having the users go to second step of the registration right away if all post variables are validated, and was wondering if someone can help me do so?</p>
