nailzfan Posted January 2, 2009 Share Posted January 2, 2009 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 More sharing options...
ratcateme Posted January 2, 2009 Share Posted January 2, 2009 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. Link to comment https://forums.phpfreaks.com/topic/139255-solved-page-refresh-question/#findComment-728426 Share on other sites More sharing options...
nailzfan Posted January 3, 2009 Author Share Posted January 3, 2009 Thanks for the help. That did it for me. I really appreciate it. Link to comment https://forums.phpfreaks.com/topic/139255-solved-page-refresh-question/#findComment-728491 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.