Now one thing bothers me: how do you redirect in step 4 if you have shown
the form in step 3?

How do you avoid a "Cannot modify header information - headers already sent
by ..." error message?

Nicolas Verhaeghe
Phone: 602-490-8000



As long as you haven't outputted anything from your script after the form
post, you can redirect just fine.

Step 3 and Step 4 are two different steps.

You need something like this:

if (isset($_POST["btnSubmit"]))

  // validate form


if (!$form_passes_validation)

  // show form

} else

   Header("location: ");


PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to