ManOnScooter Posted December 14, 2007 Share Posted December 14, 2007 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?? Quote Link to comment Share on other sites More sharing options...
ManOnScooter Posted December 14, 2007 Author Share Posted December 14, 2007 anybody having any suggestions on this one? Quote Link to comment Share on other sites More sharing options...
ccrevcypsys Posted December 14, 2007 Share Posted December 14, 2007 Did you try A header? header("Location: yourpage.php"); Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.