Jump to content

refresh page


Kay1021

Recommended Posts

Thanks that's what i thought i had to use...the header

 

but it wasn't working I guess i just have to try a different approach. It's because i'm using like a lightbox thing...and i wanted the page to refresh after you closed the lightbox...i was using some script i had used other times...that would send a variable through the url in the js and then (in the other cases) i would GET and then update my database....i thought i could do the same thing just GET and then do the refresh if the terms were right. But it doesn't seem to be doing anything....i'll have to try something else

 

thanks for the help

Link to comment
https://forums.phpfreaks.com/topic/163708-refresh-page/#findComment-863823
Share on other sites

ok my code does work...just not the refresh...i tested it updating my db and it does so when you close the box....however you have to manually refresh the page to see the results if i put the header code in there it doesn't do anything this is my code on the php page (view_category)

if(isset($_GET['r']))
	{
//updating database works here
//header("Location: view_category.php"); will not do anything
}

 

I can't find anything to work...i just want it to refresh :(

 

 

Link to comment
https://forums.phpfreaks.com/topic/163708-refresh-page/#findComment-863844
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.