Skip to content

Commit b06bbd0

Browse files
committed
Update README.md
1 parent c79fbde commit b06bbd0

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

README.md

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,24 @@
11
jquery-maxsubmit
22
================
33

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.

0 commit comments

Comments
 (0)