7 Replies - 1090 Views - Last Post: 25 July 2012 - 02:31 AM Rate Topic: -----

#1 paydayloan  Icon User is offline

  • New D.I.C Head

Reputation: -1
  • View blog
  • Posts: 6
  • Joined: 24-July 12

redirecting the page to another page in php

Posted 24 July 2012 - 03:23 AM

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".
Is This A Good Question/Topic? 0
  • +

Replies To: redirecting the page to another page in php

#2 no2pencil  Icon User is offline

  • Original Digital Gansta
  • member icon

Reputation: 4466
  • View blog
  • Posts: 24,916
  • Joined: 10-May 07

Re: redirecting the page to another page in php

Posted 24 July 2012 - 03:41 AM

View Postpaydayloan, 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.

View Postpaydayloan, 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.
Was This Post Helpful? 0
  • +
  • -

#3 paydayloan  Icon User is offline

  • New D.I.C Head

Reputation: -1
  • View blog
  • Posts: 6
  • Joined: 24-July 12

Re: redirecting the page to another page in php

Posted 24 July 2012 - 03:56 AM

View Postno2pencil, on 24 July 2012 - 03:41 AM, said:

View Postpaydayloan, 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.

View Postpaydayloan, 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.
Was This Post Helpful? 0
  • +
  • -

#4 RudiVisser  Icon User is offline

  • .. does not guess solutions
  • member icon

Reputation: 994
  • View blog
  • Posts: 3,547
  • Joined: 05-June 09

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.
Was This Post Helpful? 0
  • +
  • -

#5 paydayloan  Icon User is offline

  • New D.I.C Head

Reputation: -1
  • View blog
  • Posts: 6
  • Joined: 24-July 12

Re: redirecting the page to another page in php

Posted 24 July 2012 - 04:23 AM

View PostRudiVisser, 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.

but we can't display the error message simultaneously.
what should we do in that case??
Was This Post Helpful? 0
  • +
  • -

#6 RudiVisser  Icon User is offline

  • .. does not guess solutions
  • member icon

Reputation: 994
  • View blog
  • Posts: 3,547
  • Joined: 05-June 09

Re: redirecting the page to another page in php

Posted 24 July 2012 - 04:31 AM

View Postpaydayloan, 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

Was This Post Helpful? 1
  • +
  • -

#7 paydayloan  Icon User is offline

  • New D.I.C Head

Reputation: -1
  • View blog
  • Posts: 6
  • Joined: 24-July 12

Re: redirecting the page to another page in php

Posted 25 July 2012 - 02:13 AM

View PostRudiVisser, on 24 July 2012 - 04:31 AM, said:

View Postpaydayloan, 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>

Sir what should i do for solving this problem??
Was This Post Helpful? -1
  • +
  • -

#8 RudiVisser  Icon User is offline

  • .. does not guess solutions
  • member icon

Reputation: 994
  • View blog
  • Posts: 3,547
  • Joined: 05-June 09

Re: redirecting the page to another page in php

Posted 25 July 2012 - 02:31 AM

There is no problem.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1