BioBob Posted August 9, 2008 Share Posted August 9, 2008 I know I saw this on these forums recently how to do this, but there is a trick, I think its with header() cache-control: private or something but I dont remember. Basically on a form page, if its refreshed, isnt there a way to set teh header so Internet Exploder doesnt prompt to resubmit the form data? "To display the webpage again, Internet Explorer needs to resend the information you've previously submitted. If you were making a purchase, you should click Cancel to avoid a duplicate transaction. Otherwise, click Retry to display the webpage again." Might not even be a php thing, could be html but im fairly sure it has something to do with headers... Link to comment https://forums.phpfreaks.com/topic/118914-php-header-question-about-resubmit-warning-on-refresh/ Share on other sites More sharing options...
Prodigal Son Posted August 9, 2008 Share Posted August 9, 2008 I think you can just use header('location: ' . $_SERVER['PHP_SELF']); or whatever address you want to go to. Link to comment https://forums.phpfreaks.com/topic/118914-php-header-question-about-resubmit-warning-on-refresh/#findComment-612313 Share on other sites More sharing options...
BioBob Posted August 9, 2008 Author Share Posted August 9, 2008 Basicly what Im trying to do is to resubmit data without getting prompted by IE every time I hit refresh. Not a redirect. Doest that make more sense? Link to comment https://forums.phpfreaks.com/topic/118914-php-header-question-about-resubmit-warning-on-refresh/#findComment-612320 Share on other sites More sharing options...
DarkWater Posted August 9, 2008 Share Posted August 9, 2008 Oh yeah, I know what you mean. That may just be a browser security thing...You'd probably have better luck on the Microsoft FAQs or something, unless someone has experience with it. But most people hate overstepping browser security (if it's possible) because it often means that they need to alter something ELSE for it to play nice with other browsers. Link to comment https://forums.phpfreaks.com/topic/118914-php-header-question-about-resubmit-warning-on-refresh/#findComment-612377 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.