| Posted by peebrain on 06/25/05 04:44 
Ken Robinson wrote:>
 > peebrain wrote:
 >
 >
 >>... My problem though is if form
 >>validation fails on "page 2.php" (where the form data was submitted and
 >>the validation performed), how do I return the user to "page1.php" to
 >>try again?
 >
 >
 > Why do you need separate scripts?
 >
 > To answer your question, you use the header() function.
 > www.php.net/header
 >
 > Ken
 >
 
 Good one Ken. That will be very useful if not in this case then in other
 situations where I want to redirect to another page.
 8< --------------
 header("Location: http://www.example.com/"); /* Redirect browser */
 8< --------------
 thanx.
 The reason for two pages is that the data submitted by the first form
 gets loaded up into a different form. This could all be done in one
 script but logically made sense to two separate purpose scripts.
  Navigation: [Reply to this message] |