I tried this but get error message. It says that i've opened a header and
can't open another things like that.

Is this the only way to do that?

For your reference, my php file looks like this:

<?php
if ($submit){
    if (checking not succeed){
        echo "....";
    }else{
        (redirection to another php form for further input )
    }
}else{
    (display html form)
}
?>


""Richard Lynch"" <[EMAIL PROTECTED]> wrote in message
01e801c09ac4$9f0a6520$[EMAIL PROTECTED]">news:01e801c09ac4$9f0a6520$[EMAIL PROTECTED]...
> You could do:
>
> header("Location: page2.php");
>
> But you may need to pass some variables such as:
>
> header("Location: page2.php?SESSID=$SESSID");
>
> You'd probably be better of having the error checking at the top of the
> second page and sending them *back* to the first page if they got it
wrong.
>
> --
> Visit the Zend Store at http://www.zend.com/store/
> Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
> Volunteer a little time: http://chatmusic.com/volunteer.htm
> ----- Original Message -----
> From: "Edith Lai" <[EMAIL PROTECTED]>
> Newsgroups: php.general
> Sent: Monday, February 19, 2001 9:54 AM
> Subject: [PHP] Open location automatically after checking
>
>
> > Hi,
> > I have a form for user input and after checking, it's gonna go to
another
> > page for further input. What should i code to bring the second input
page
> up
> > after checking done on the first??
> > Thanks.
> >
> > Edith Lai
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail: [EMAIL PROTECTED]
> >
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to