File tree Expand file tree Collapse file tree 1 file changed +21
-1
lines changed Expand file tree Collapse file tree 1 file changed +21
-1
lines changed Original file line number Diff line number Diff line change 1
1
jquery-maxsubmit
2
2
================
3
3
4
- jQuery plugin to detect if too many form items will be submitte for the server to cope with.
4
+ jQuery plugin to detect if too many form items will be submitte for the server to cope with.
5
+
6
+ Some appications, such as ecommerce sites, can have administration forms that submit well
7
+ over a thousand parameters. PHP, by default, is set to accept only one thousand parameters
8
+ and so some of the submitted data can get lost.
9
+
10
+ Most applications don't check whether they received everything, and so data can get broken
11
+ easily and silently. A WooCommerce product with 40 variations can have over 1300 submitted
12
+ form items, and when saving the product you have no idea that much of that data is being
13
+ discarded.
14
+
15
+ Luckily the maximum number of accepted parameters can be changed in php.ini The problem is,
16
+ many site owners have no idea this needs to be done until it is too late and their
17
+ WooCommerce store has lost half its product variations.
18
+
19
+ What this jQuery plugin attempts to do, is warn the site administrator before a form is
20
+ submitted, on the client (browser) side, and give the administrator a chance to cancel the
21
+ submit and change the settings on the server. It does this by counting how many items
22
+ will be submitted in a form (it does this, hopefully, intellidently by taking into account
23
+ all the form item types and selected values). The plugin is given the maximum number of
24
+ items the server will accept when the page is generated, so it has a number to compare to.
You can’t perform that action at this time.
0 commit comments