Re: php question
| From: | Brian Feliciano | Date: | Fri, 12 Oct 2001 08:24:45 +0000 |
| Subject: | Re: php question | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-9820@lists.php.net to get a copy of this message | ||
im sorry, now it's ok. i just didn't wrong.
instead of header("Location:login.php"); i did header("Location=login.php");
> OK,
> This is first try:
>
> if ($submit) {
> file://checking variable from form
> if (everything OK) {
> include ("go.php");
> exit;
> } else {
> include ("error.php");
> exit;
> }
> }
> <form action="<?=$PHP_SELF ?>" ...................
>
>
> <input type="submit" ...
>
>
> Dan
> -----Original Message-----
> From: Brian Feliciano [mailto:brian@websensegroup.com]
> Sent: Friday, October 12, 2001 9:09 AM
> To: Sichta Daniel; php-windows@lists.php.net
> Subject: Re: [PHP-WIN] php question
>
>
> okay, this is what i want to do.
> i have a login.php that asks the user to login.
> and then if the login was successful the user will "redirected" to my
> main.php.
> and also if the user is already logged and went to my index.php, he will
be
> redirected immediately to main.php
>
> i tried to do header("Location: main.php"); but it said that i "cannot add
> header information".
>
> pls. help.
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net
> For additional commands, e-mail: php-windows-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>