From 6c7e4a871eaf9ea45ecd8d47826b1e94c9db7e6f Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Thu, 16 Aug 2007 09:57:06 +0000 Subject: [PATCH] Simplify and secure the example (bug #42176) git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@241299 c90b9560-bf6c-de11-be94-00142212c4b1 --- language/variables.xml | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/language/variables.xml b/language/variables.xml index fe3b5c8b8c..e8722e08c9 100644 --- a/language/variables.xml +++ b/language/variables.xml @@ -1,5 +1,5 @@ - + Variables @@ -944,15 +944,13 @@ echo "$a $hello"; '; - print_r($_POST); - echo 'Please try again'; - + echo htmlspecialchars(print_r($_POST, true)); echo ''; -} else { +} ?> -
+ Name:
Email:
Beer:
@@ -961,12 +959,8 @@ if (isset($_POST['action']) && $_POST['action'] == 'submitted') {
- - +
- ]]>