From b73e38061be04f5031799beac38122f2e75d75ee Mon Sep 17 00:00:00 2001 From: Philip Olson Date: Wed, 31 Oct 2001 19:24:18 +0000 Subject: [PATCH] Added note about magic_quotes_gpc and slashes under 'variables from outside php' A link to html faq was also added. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@61271 c90b9560-bf6c-de11-be94-00142212c4b1 --- language/variables.xml | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/language/variables.xml b/language/variables.xml index 4dd953d3ba..8b495b0315 100644 --- a/language/variables.xml +++ b/language/variables.xml @@ -1,5 +1,5 @@ - + Variables @@ -860,11 +860,22 @@ echo "$a $hello"; be available as $username in the global scope. + + + The magic_quotes_gpc + configuration directive affects Get, Post and Cookie values. If + turned on, value (It's "PHP!") will automagically become (It\'s \"PHP!\"). + Escaping is needed for DB insertion. Also see + addslashes, stripslashes and + magic_quotes_sybase. + + + - PHP also understands arrays in the context of form variables. You - may, for example, group related variables together, or use this - feature to retrieve values from a multiple select - input: + PHP also understands arrays in the context of form variables + (see the related faq). You may, + for example, group related variables together, or use this + feature to retrieve values from a multiple select input: