redirect from one page to other after 5 second??
I want to use this code in preparing the login page. In case of wrong password it should redirect to login page as well as show the user that "the password entered was incorrect".
redirecting the page to another page in php
Page 1 of 17 Replies - 1090 Views - Last Post: 25 July 2012 - 02:31 AM
Replies To: redirecting the page to another page in php
#2
Re: redirecting the page to another page in php
Posted 24 July 2012 - 03:41 AM
paydayloan, on 24 July 2012 - 06:23 AM, said:
redirect from one page to other after 5 second??
I wouldn't use php for this. I would use something client side, as php is not able to know how long the client is on the site for.
& your spam links were removed. First & only warning.
paydayloan, on 24 July 2012 - 06:23 AM, said:
I want to use this code in preparing the login page. In case of wrong password it should redirect to login page as well as show the user that "the password entered was incorrect".
You wouldn't redirect based on time, your logic would not allow the user access to the page without the correct password.
#3
Re: redirecting the page to another page in php
Posted 24 July 2012 - 03:56 AM
no2pencil, on 24 July 2012 - 03:41 AM, said:
paydayloan, on 24 July 2012 - 06:23 AM, said:
redirect from one page to other after 5 second??
I wouldn't use php for this. I would use something client side, as php is not able to know how long the client is on the site for.
& your spam links were removed. First & only warning.
paydayloan, on 24 July 2012 - 06:23 AM, said:
I want to use this code in preparing the login page. In case of wrong password it should redirect to login page as well as show the user that "the password entered was incorrect".
You wouldn't redirect based on time, your logic would not allow the user access to the page without the correct password.
can you please show me the code to be used in case and on which client side language.
#4
Re: redirecting the page to another page in php
Posted 24 July 2012 - 04:09 AM
<meta http-equiv="refresh" content="5;url=http://anothersite.com/" />
Where 5 is the amount of seconds that it will wait, and http://anothersite.com/ is the redirection target.
Where 5 is the amount of seconds that it will wait, and http://anothersite.com/ is the redirection target.
#5
Re: redirecting the page to another page in php
Posted 24 July 2012 - 04:23 AM
RudiVisser, on 24 July 2012 - 04:09 AM, said:
<meta http-equiv="refresh" content="5;url=http://anothersite.com/" />
Where 5 is the amount of seconds that it will wait, and http://anothersite.com/ is the redirection target.
Where 5 is the amount of seconds that it will wait, and http://anothersite.com/ is the redirection target.
but we can't display the error message simultaneously.
what should we do in that case??
#6
Re: redirecting the page to another page in php
Posted 24 July 2012 - 04:31 AM
paydayloan, on 24 July 2012 - 12:23 PM, said:
but we can't display the error message simultaneously.
Why not?
<!DOCTYPE html> <html> <head> <title>Login Error</title> <meta http-equiv="refresh" content="5;url=http://anothersite.com/" /> </head> <body> Login error </body> </html>
This post has been edited by RudiVisser: 24 July 2012 - 04:31 AM
#7
#8
Re: redirecting the page to another page in php
Posted 25 July 2012 - 02:31 AM
There is no problem.
Page 1 of 1
|
|

New Topic/Question
Reply



MultiQuote




|