Jump to content

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

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.