November 21st, 2013, 03:40 PM
Redirection with time
How to add refresh tag to login.php
that you are going to redirect Home Page : 5 - 4 -3 -2 -1
header ('location: index.php');
November 21st, 2013, 03:48 PM
Is the counter supposed to live-update with each second of the countdown?
November 21st, 2013, 04:10 PM
this is easy: Just don't do it.
I know that deferred redirects are one of those "cool features" everybody thinks they should implement -- just like everybody in the 90s thought they need visitor counters, blinking fonts and "under construction" signs. But if you actually think about it, the idea turns out to be crap.
From a user's perspective, a noticeable redirect feels like being slapped in the face. Seriously. Who are you to kill the current page while I'm viewing it and unaskedly take me to some other page? This technique also means that the page cannot contain anything useful, because any action the user takes may be interrupted at a any time. In other words, the poor user has sit passively in front of the screen and wait for the friggin' counter to reach zero. Who on earth does that in the 21st century?
Counters themselves are already very problematic. I can't think of any legitimate use case except of maybe games. If you absolutely definitely need them, at least make the site interactive so that people can do something while they wait. Use Ajax instead of redirects.
If you wanna keep your users, don't get on their nerves with stupid gadgets from the 90s.
November 21st, 2013, 05:25 PM
how to do it do you have any idea
Originally Posted by Jacques1
November 21st, 2013, 06:45 PM
Please don't full-quote my replies. The text is right above your post, so no need to repeat everything.
What exactly is your question? I suggested to either give up the countdown completely or to at least use Ajax. What did you choose? What are you struggling with?
Please note that we don't hand out complete solution. So if you want help, you need to be specific.