Help - Search - Members - Calendar
Full Version: How Do I Redirect Users After Displaying Some Output?
Zymic Webmaster Forums > Web Design & Development > Server Side Scripting > PHP
kevin_k
Hello Everybody:

I've noticed that, for instance, when we log-in to our accounts or log-out a status page comes up to tell us that we were logged-in/out correctly AND then redirects us to another page. I've used the header() function to redirect users to various pages after performing some programming task but the PHP manual says that the header() function must come before any output is sent to the browser. How does Zymic perform their redirects? I'd like to do this with my users when they log-in/out to my site too.
Ed
W3C have deprecated it, as it quite rightly states that it is not known how long a user needs to read the page, but we use a meta refresh to delay it:

CODE
<meta http-equiv="refresh" content="5;URL='http://www.page.to.redirect.to'" />


http://www.w3.org/TR/2003/WD-WCAG20-HTML-T.../#meta_redirect
kevin_k
QUOTE(Bread @ Jul 9 2009, 05:59 PM) *
W3C have deprecated it, as it quite rightly states that it is not known how long a user needs to read the page, but we use a meta refresh to delay it:

CODE
<meta http-equiv="refresh" content="5;URL='http://www.page.to.redirect.to'" />


http://www.w3.org/TR/2003/WD-WCAG20-HTML-T.../#meta_redirect


Thanks Bread. That was quite useful, I've already tested it on a few pages I'm working on. Very cool. I'm very impressed with the level of tech support you guys provide.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.