ihave tried the header() function as Julio suggested. But I get an error
message in the browser. I am also using session variables in all these pages
(only 2).
My code :
if (!mysql_numrows($result) ) {
die ( "username/password not valid");
}
else{
header("Menu.php");
}
the error message in IE:
Warning: Cannot add header information - headers already sent by (output
started at /home/e-smith/files/ibays/bigpool1/html/login.php:1) in
/home/e-smith/files/ibays/bigpool1/html/login.php on line 1
Thanks in advance,
brad
> From: "Inércia Sensorial" <[EMAIL PROTECTED]>
> Date: Thu, 5 Jul 2001 22:26:24 -0300
> To: [EMAIL PROTECTED]
> Subject: [PHP] Re: changing to a different file in browser
>
> header ("http://www.example.com"); // Goes to example.com.
>
> --
>
>
> Julio Nobrega.
>
> A hora está chegando:
> http://sourceforge.net/projects/toca
>
> "Brad Wright" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>> Hi all,
>> I know this is probably the most stupid question you'll see on this list
> for
>> a while, but anyway,
>> In an 'if..else' statement, I want to (if a condition is met) change to a
>> totally new php page in the browser window. I know this is simple (in fact
> i
>> had it working last night but have now forgotten how i did it).
>>
>> ie (no the following is NOT actual PHP....sheesh :)
>>
>> If a=1
>> go to required_page.php
>> else
>> do nothing
>>
>> Thanks in advance,
>> Brad
>>
>
>
>
>
>
> --
> 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]