diff --git a/index.php b/index.php index d04c261..8f3eb5b 100644 --- a/index.php +++ b/index.php @@ -9,6 +9,8 @@ + + + + + + + 'Text 1', 'text2' => 'Text 2', + 'textarea1' => "A nice\nstory.", 'checkbox1' => 'on', 'checkbox2' => '', ); foreach($input as $key => $value) { - $input[$key] = (isset($_POST[$key]) ? $_POST[$key] : '' ); + $input[$key] = (isset($_POST[$key]) ? htmlspecialchars($_POST[$key]) : $input[$key] ); } $input = array_merge( @@ -88,7 +108,7 @@ function getFormSubmissionLimit($default = false)
Thank you for posting some stuff! - On a real application you may have lost some data by doing so. + On a real application you may have lost some data by ignoring the warning.
@@ -97,35 +117,48 @@ function getFormSubmissionLimit($default = false) For these tests, we will set the limit to 2, so the confirm message is always shown. ++ Clicking the labels of the form items like this will disable those items, so they are not submitted. +
+