To register for an Internet.com membership to receive newsletters and white papers, use the Register button ABOVE.
To participate in the message forums BELOW, click here
PHPBuilder.com  
 

 

Go Back   PHPBuilder.com > Misc Help > Linux/Unix Help

Linux/Unix Help Help with server-side Linux and Unix issues

Reply
 
Thread Tools Rate Thread Display Modes
Old 11-21-2002, 06:54 AM   #1
Cinquecento
Member
 
Join Date: Aug 2002
Posts: 77
Secure forms 'unavailable' on submit??

oh my....
I've a series of forms on a secure site running on Linux that submit to themselves for validation, inserting into mySql and then loading the next page.
Most of the time though the submitted pages are 'unavailable' - even though they are merely reloading. If I back up and re-type the form data and submit again, they work ok! Is it a script error? This never happens on other 'unsecure' pages on my server. I'm really stuck on this!

I've duplicated one of the forms under another name and submit to it from the original and it always works. So maybe I need to split my handling code for the form data and put it into a separate scripts?

Thanks for any help

Ian
Cinquecento is offline   Reply With Quote
Old 11-21-2002, 02:42 PM   #2
hand
Senior Member
 
Join Date: Aug 2002
Location: Carinthia, Austria
Posts: 667
To deactivate any proxy-cache, code this four header instructions at the very beginning of your script:
PHP Code:
header ("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // some gone date
header ("Last-Modified: " . gmdate ("D, d M Y H:i:s") . " GMT");
header ("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
header ("Pragma: no-cache"); // HTTP/1.0
To deactivate browser cache, insert following meta tag to your produced html codes
PHP Code:
<META http-equiv="expires" content="0">
hand is offline   Reply With Quote
Old 11-21-2002, 03:23 PM   #3
Cinquecento
Member
 
Join Date: Aug 2002
Posts: 77
still failing.....

Nope that didn't do it!

I think I'll have to strip out all the validation and processing scripts and run them on independent pages... it's the only thing that seems to work....

I don't know what causes this though - it's like the secure section of the server is caught 'napping' sometimes!

Ian
Cinquecento is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT -4. The time now is 06:16 PM.






Acceptable Use Policy

internet.comMediabistrojusttechjobs.comGraphics.com

WebMediaBrands Corporate Info


Advertise | Newsletters | Feedback | Submit News

Legal Notices | Licensing | Permissions | Privacy Policy


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.