Re: [PHP] Add Slashes - Server Adds Them Automatically - Advice Requested!
Hmm.. Forms always produced slashed data than I wouldn't have gotten a MySQL error on the ' in O'Neil.. But perhaps it is something on my server.. Andrey Hristov wrote: I think that always from a form the script gets slashed data. Andrey Hristov IcyGEN Corporation http://www.icygen.com 99% - Original Message - From: Mike Gifford [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, August 29, 2001 6:58 PM Subject: [PHP] Add Slashes - Server Adds Them Automatically - Advice Requested! Hello, I've created a little opensource script: http://openconcept.ca/guide-petition.phtml Which uses addslashes() to help clean up data inserted from a web form. This is fine, except that it appears that you can set up php, so that addslashes are automatically added: one small thing i noticed was the addSlashes issue. it seems like php is sometimes installed (such as on my machine) in such a way that addSlashes AUTOMATICALLY happens and therefore MANUAL addSlashes adds a SECOND, superfluous forward slash. eg Patrick the skier kuharic comes out in invitea friend emails by your system as Patrick \the skier\ kuharic Has anyone else experienced this? Any suggestions for work arounds? Mike -- Mike Gifford, OpenConcept Consulting, http://openconcept.ca Offering everything your organization needs for an effective web site. Abolish Nuclear Weapons Now!: http://pgs.ca/petition/ It is a miracle that curiosity survives formal education. - A Einstein -- 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] -- Mike Gifford, OpenConcept Consulting, http://openconcept.ca Offering everything your organization needs for an effective web site. Abolish Nuclear Weapons Now!: http://pgs.ca/petition/ It is a miracle that curiosity survives formal education. - A Einstein -- 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]
RE: [PHP] Add Slashes - Server Adds Them Automatically - Advice Requested!
See the magic_quotes_gpc setting in the php.ini file. This can be set to on or off, and is responsible for escaping GET/POST/COOKIE data automatically. Kirk -Original Message- From: Mike Gifford [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 29, 2001 9:58 AM To: [EMAIL PROTECTED] Subject: [PHP] Add Slashes - Server Adds Them Automatically - Advice Requested! Hello, I've created a little opensource script: http://openconcept.ca/guide-petition.phtml Which uses addslashes() to help clean up data inserted from a web form. This is fine, except that it appears that you can set up php, so that addslashes are automatically added: one small thing i noticed was the addSlashes issue. it seems like php is sometimes installed (such as on my machine) in such a way that addSlashes AUTOMATICALLY happens and therefore MANUAL addSlashes adds a SECOND, superfluous forward slash. eg Patrick the skier kuharic comes out in invitea friend emails by your system as Patrick \the skier\ kuharic Has anyone else experienced this? Any suggestions for work arounds? Mike -- 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]
Re: [PHP] Add Slashes - Server Adds Them Automatically - Advice Requested!
I think that always from a form the script gets slashed data. Andrey Hristov IcyGEN Corporation http://www.icygen.com 99% - Original Message - From: Mike Gifford [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, August 29, 2001 6:58 PM Subject: [PHP] Add Slashes - Server Adds Them Automatically - Advice Requested! Hello, I've created a little opensource script: http://openconcept.ca/guide-petition.phtml Which uses addslashes() to help clean up data inserted from a web form. This is fine, except that it appears that you can set up php, so that addslashes are automatically added: one small thing i noticed was the addSlashes issue. it seems like php is sometimes installed (such as on my machine) in such a way that addSlashes AUTOMATICALLY happens and therefore MANUAL addSlashes adds a SECOND, superfluous forward slash. eg Patrick the skier kuharic comes out in invitea friend emails by your system as Patrick \the skier\ kuharic Has anyone else experienced this? Any suggestions for work arounds? Mike -- Mike Gifford, OpenConcept Consulting, http://openconcept.ca Offering everything your organization needs for an effective web site. Abolish Nuclear Weapons Now!: http://pgs.ca/petition/ It is a miracle that curiosity survives formal education. - A Einstein -- 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]