Page is a not externally linkable
- Code, Content, and Presentation
-- PHP Server Side Scripting
---- PHP - characters escaping in form data


ergophobe - 8:00 pm on Jul 17, 2002 (gmt 0)


cbooth,

for more on magic_quotes, see

[php.net...]

Actually, to save you the effort, here's the relevant stuff from that page...

``````````
magic_quotes_gpc boolean

Sets the magic_quotes state for GPC (Get/Post/Cookie) operations. When magic_quotes are on, all ' (single-quote), " (double quote), \ (backslash) and NUL's are escaped with a backslash automatically. If magic_quotes_sybase is also on, a single-quote is escaped with a single-quote instead of a backslash.

magic_quotes_runtime boolean

If magic_quotes_runtime is enabled, most functions that return data from any sort of external source including databases and text files will have quotes escaped with a backslash. If magic_quotes_sybase is also on, a single-quote is escaped with a single-quote instead of a backslash.

magic_quotes_sybase boolean

If magic_quotes_sybase is also on, a single-quote is escaped with a single- quote instead of a backslash if magic_quotes_gpc or magic_quotes_runtime is enabled.


Thread source:: http://www.webmasterworld.com/php/480.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com