you can use:
if($REQUEST_METHOD=='GET' or $REQUEST_METHOD=='POST')
ini_set ('magic_quotes_gpc', 'off');
Sincerely,
Maxim Maletsky
Founder, Chief Developer
PHPBeginner.com (Where PHP Begins)
[EMAIL PROTECTED]
www.phpbeginner.com
-----Original Message-----
From: Ben Cheng [mailto:[EMAIL PROTECTED]]
Sent: Sunday, February 25, 2001 1:52 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Temporarily turning off magic quotes?
If I have magic quotes turned on for post/get/etc. in my php.ini, is
there any way to temporarily turn it off for one page? For example,
I have a preview page inbetween my data entry page and the page that
actually saves to db. I don't want magic quotes turned on when going
from the data entry to the preview page since all quotes keep getting
backslashed. Is there a way to do this?
-Ben
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]