From 14fba482a8b38b3c93a13bb63db406701bbc06ad Mon Sep 17 00:00:00 2001
From: Jason Judge
Date: Mon, 27 Jan 2014 00:30:54 +0000
Subject: [PATCH] Fixes for ticket #1
---
index.php | 44 ++++++++++++++++++++++++++++++++----
jquery-maxsubmit.jquery.json | 2 +-
jquery.maxsubmit.js | 15 ++++++------
3 files changed, 48 insertions(+), 13 deletions(-)
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.
+
+