Jump to content

suggestion on page reload/refresh


ManOnScooter

Recommended Posts

I Need a suggestion on page reload & page refresh,

 

Here i have a condition where on back click of wrong_password.php/welcome.php the page goes to login.php,

My login.php page has a CAPTCHA image.

So want to make sure on click back click of wrong_password.php/welcome.php page it goes to login.php but login.php is refreshed i.e. it shows a new captcha image.

 

So i need to implement refresh of login.php when it comes from back-click of wrong_password.php/welcome.php

 

I thought abt it and concluded the following steps..

1. Have a new session parameter page_name so session makes

page_no = wrongpassword for wrong_password.php and

page_no=welcome for welcome.php

 

2. On load of login.php it checks this parameter page_no

if page_no = wrongpassword or page_no = welcome then the page is redirected to login.php(which works as a refresh)

 

I want to know is there a direct way to refresh the php page? This is adding complications to the process, isnt there a better way to execute this ??

and maybe throw an error message in other cases??

 

 

Link to comment
https://forums.phpfreaks.com/topic/81688-suggestion-on-page-reloadrefresh/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.