Hi,
My codes are as follows,
login.php
?
session_start();
if (!$HTTP_POST_VARS['logname'] !$HTTP_POST_VARS['logpass'])
{
// User needs to supply login name and password.
?
// This is my default header that I want to include on every page.
html
head
titleSupport Center/title
Hi,
I use header(location: ...) for redirection to another page. But I also want
to include title, meta and link tags in the other page. Is there a way
to this? Because php complains that the header already been sent.
Regards,
Norman
--
PHP General Mailing List (http://www.php.net/)
To
, 2002 3:07 PM
Subject: [PHP] header redirection
Hi,
I use header(location: ...) for redirection to another page. But I also
want
to include title, meta and link tags in the other page. Is there a
way
to this? Because php complains that the header already been sent.
Regards,
Norman
--
PHP
On Saturday 20 April 2002 05:07, Norman Zhang wrote:
Hi,
I use header(location: ...) for redirection to another page. But I also
want to include title, meta and link tags in the other page. Is there
a way to this? Because php complains that the header already been sent.
Show us your code.
does not execute until the remainder
of the script has executed...
How can I redirect the user:
header(Location: http://www.foo.bar\n\n;);
and continue to execute a set of commands
after the redirection?
Just having the redirection code before the other code does not work.
Linux running
It's my understanding that PHP's normal behavior IS to send the
header when it is encountered in your program, and then continue
running the program (unless you have an exit statement after the
header).
Perhaps you have output buffering turned on?
If that's not the case, please most more
On Tue, Mar 20, 2001 at 10:05:06PM -0800, [EMAIL PROTECTED] wrote:
Why wouldn't this redirect? The query works, but the page won't redirect. I
have used the same two lines successfully on other pages. I'm very tired,
it's probably obvious.
?php
// assuming $uid, $itemid, $week, $cur_wk
"Jason Stechschulte" [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
On Tue, Mar 20, 2001 at 10:05:06PM -0800, [EMAIL PROTECTED] wrote:
SNIP
$redirurl = "bid.php?uid=" . $uid . "itemid=" . $itemid;
header ($redirurl);
?
It appears your code is missing
Why wouldn't this redirect?
Because you need to do this:
?
header ("Location: $redirurl");
?
Jason
--
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:
9 matches
Mail list logo