Forum Moderators: coopster

Message Too Old, No Replies

Forward

Forward PHP without headers

         

Philly

12:25 am on Apr 19, 2005 (gmt 0)

10+ Year Member



Hello. I am trying to forward a page after user changes to their profile are made. Currently (works fine) I am using...

echo "<meta http-equiv=\"Refresh\" content=\"0;URL=ProfileViewNoJava.php?Updated=True\">";

But I am trying to make a no JS / no Refresh version, so if a user has js and refresh disabled, the site will still work.

Can anyone please help me find a php refresh after headers? All my refreshes were changed to:

header('Location: ['.getenv("HTTP_HOST").'...]

but they were all before any headers.

Thank you in advance.

coopster

11:14 am on Apr 19, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Welcome to WebmasterWorld, Philly.

Can you use output buffering?

Output Control Functions [php.net]

Philly

1:19 pm on Apr 19, 2005 (gmt 0)

10+ Year Member



Thank you coopster, for trying, and for the warm welcome. Unfortunately, I can not use output buffering, unless I want to buffer 200 lines of code 1st. I think I'll just create a link for anyone who has autorefresh disabled to refresh it themeselves.

Thanks again for your time.

coopster

10:59 am on Apr 21, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



If that works for you, that's fine.

Also, output buffering doesn't store your code in the output buffer, only the output from the code -- for example, anytime you use echo() or print() or other output functions.