Accurax Posted March 8, 2007 Share Posted March 8, 2007 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 More sharing options...
richardw Posted March 8, 2007 Share Posted March 8, 2007 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 Link to comment https://forums.phpfreaks.com/topic/41825-refresh-the-page-on-click/#findComment-202833 Share on other sites More sharing options...
papaface Posted March 8, 2007 Share Posted March 8, 2007 To refresh the page by using a link just create a link to the same page..... <a href="mypage.php">Link</a> Link to comment https://forums.phpfreaks.com/topic/41825-refresh-the-page-on-click/#findComment-202838 Share on other sites More sharing options...
Accurax Posted March 9, 2007 Author Share Posted March 9, 2007 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? Link to comment https://forums.phpfreaks.com/topic/41825-refresh-the-page-on-click/#findComment-203343 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.