Robert Samuel White wrote: > [SNIP] > > 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 > E-mail: nicolas@xxxxxxxxxxxxx > Phone: 602-490-8000 > > [/SNIP] > > > > Nicholas, > > 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: "); > > } Indeed but you specify that you reshow the form and then redirect... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php