[PHP] Limitation of redirecting using header()?

2001-04-10 Thread Daniel

I am writting a session enabled webapp that has a typical login page.  The
page submits to itself and upon validation, I want to allow the user to
continue on to the next page.

From everything I have read so far, the only way to redirect
programmatically is via header().  Unfortunately, what I'm seeing is that
while the followup page is loaded, the location in the address bar (of IE
5.5) is not updated.  Is this something specific to IE?  I would like the
address bar to have the correct address instead of the old page.

Any suggestions?

- Daniel



-- 
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]




RE: [PHP] Limitation of redirecting using header()?

2001-04-10 Thread Johnson, Kirk

There is also the client-side META tag redirect, which has been deprecated
by W3C (although it is hard to imagine the browser makers not supporting
this for quite a while longer):

echo("HTMLHEADMETA HTTP-EQUIV=\"refresh\"
CONTENT=\"$delay;url=$url\"
/HEADBODY BGCOLOR=#ff$message/BODY/HTML");

As for the address bar contents not changing, I don't know what to say. I
haven't seen your problem. Are you actually referring to the Title Bar
instead of the address bar? The contents of the TITLE tag need to be
different for each page for the title bar to change.

Kirk


 From everything I have read so far, the only way to redirect
 programmatically is via header().  Unfortunately, what I'm 
 seeing is that
 while the followup page is loaded, the location in the 
 address bar (of IE
 5.5) is not updated.  Is this something specific to IE?  I 
 would like the
 address bar to have the correct address instead of the old page.
 
 Any suggestions?
 
 - Daniel
 

-- 
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]




Re: [PHP] Limitation of redirecting using header()?

2001-04-10 Thread Mark Maggelet

On Tue, 10 Apr 2001 14:18:54 -0400, Daniel ([EMAIL PROTECTED])
wrote:
I am writting a session enabled webapp that has a typical login
page.  The
page submits to itself and upon validation, I want to allow the user
to
continue on to the next page.

From everything I have read so far, the only way to redirect
programmatically is via header().  Unfortunately, what I'm seeing is
that
while the followup page is loaded, the location in the address bar
(of IE
5.5) is not updated.  Is this something specific to IE?  I would
like the
address bar to have the correct address instead of the old page.

Any suggestions?

in my experience, using a full url:
header("Location: http://www.mysite.com/mypage.html");

will do what you want while just using a path:
header("Location: /mypage.html");

will not.



--
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]




Re: [PHP] Limitation of redirecting using header()?

2001-04-10 Thread Daniel

I might have misread this comment, but I found the opposite.

In one instance, I had:
header("Location: $path/newpage.php");
and in another instance:
header("Location: newpage.php");

The latter (without the path) did update the address bar properly.  Of
course, there might have been a problem with the way I was parsing the $path
too.. :/

One other thing for posterity's sake:

I had a difficult time discovering why one of the properties in an object I
was storing via a session was being clobbered.  I discovered that it was
because I was assuming that nothing after the header() call mattered.  What
I didn't realize was that even though the header was set up to redirect to a
new page, the rest of the code in the page was still executing!  I put an
exit() statement after the header() call to prevent this.

Daniel

"Mark Maggelet" [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
On Tue, 10 Apr 2001 14:18:54 -0400, Daniel ([EMAIL PROTECTED])
wrote:
I am writting a session enabled webapp that has a typical login
page.  The
page submits to itself and upon validation, I want to allow the user
to
continue on to the next page.

From everything I have read so far, the only way to redirect
programmatically is via header().  Unfortunately, what I'm seeing is
that
while the followup page is loaded, the location in the address bar
(of IE
5.5) is not updated.  Is this something specific to IE?  I would
like the
address bar to have the correct address instead of the old page.

Any suggestions?

in my experience, using a full url:
header("Location: http://www.mysite.com/mypage.html");

will do what you want while just using a path:
header("Location: /mypage.html");

will not.

--
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]