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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.