Jump to content

[SOLVED] Page refresh question


nailzfan

Recommended Posts

Hi all,

 

Big-time newb here, so I'm not sure if this is the right place for this question, but here goes.  Check this out:

 

http://midtowncomputersolutions.com/image_test.html

 

I have this diploma image with two text boxes below it where someone can enter a name and a date, hit submit and have those items placed onto the image using the GD library, and then the altered image can be downloaded.  If I click on the back button and enter new text the image with the previous text is still shown until I hit refresh.  My question is how can I have the correct page shown without hitting refresh.

 

Thanks

Link to comment
https://forums.phpfreaks.com/topic/139255-solved-page-refresh-question/
Share on other sites

i found it does what you say with IE7 and Fire fox 3 but not google chrome

you might want to try using sessions and a php page to generate the image and display it dynamically and tells the browser not to cache it here are the headers you would need

header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
header("Expires: Sat, 26 Jul 1997 05:00:00 GMT"); // Date in the past
header("Content-type: image/jpeg");
//image generation script

 

Scott.

 

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.