Jump to content

Refresh the page on click


Accurax

Recommended Posts

I'm trying to find a way to refresh the page upon the clicking of a link that does not use header's.

 

reason being there isnt anyway i can get the statement up above all the output.

 

The only way ive found of doing something similar is:

 

<META HTTP-EQUIV=Refresh CONTENT="3; mypage.php">

 

Which just refreshes the page every 3 seconds.

 

Not really suitable to be honest.

 

Can anyone think of another way to handle this?

Link to comment
https://forums.phpfreaks.com/topic/41825-refresh-the-page-on-click/
Share on other sites

This may not be exactly what you want, but it quickly reloads the page

 

<input type="Submit" name="submit" value="Show  Details"> <INPUT TYPE="button" onClick="parent.location=mypage.php'" value="Reset Page"> </form> 

 

hope this helps  :)

To refresh the page by using a link just create a link to the same page.....

<a href="mypage.php">Link</a>

 

It is allready a link to the same page.

 

The links sets a variable "action" to equal yes, and then i have an if statement that deletes some information from my database.

 

Problem is, that allthoguh it works correctly, the user does not see the result as the page needs to be refreshed before the data is removed from their browser.

 

Was hoping for a way of refreshing the page when the link was selected as its not hap[pening at the moment.

 

Does this make sense?

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.