1

I'm kind of confused... HTML <meta> redirects are discouraged, PHP header(); redirects are discouraged too (at least random user on PHP.net says so), javascript redirects are good, but won't work if user has disabled it. Have to agree, that disabled javascript nowadays is pretty rare, but still.

So in this case, what would be the best way to do timed redirects? Like, the one that could be considered valid, all platforms compatible etc.

And, any references for W3 discouraged PHP header(); redirects? Or it's discouraged because of it acts exactly the same as <meta> redirect?

P.S. Would love to see how you guys get your timed redirects done for the best accessibility.

EDIT: It's needed for redirects after form submission.

Thanks in advance!

tomsseisums
  • 13,168
  • 19
  • 83
  • 145
  • possible duplicate of [php script to stay for few second in some page and redirect ](http://stackoverflow.com/questions/3768573/php-script-to-stay-for-few-second-in-some-page-and-redirect) – Gordon Nov 25 '10 at 12:13

1 Answers1

4

The W3C Article is no solution, if you need a timed redirect. Timed redirects are generally discouraged, since the website does something without any User-Action, which can be considered to be bad UI design. If you really need a timed redirect go for the Meta-Refresh stuff.

Adam Caviness
  • 3,424
  • 33
  • 37
Laph
  • 311
  • 2
  • 6