HTML Form Button value is not posted in Safari and Chrome

后端 未结 10 1940
旧巷少年郎
旧巷少年郎 2021-01-08 00:15

I am using jQuery to submit a form when a button is clicked. I would then like to test the value of the button, however, this doesn\'t get submitted in Safari and Chrome. Wh

10条回答
  •  情深已故
    2021-01-08 01:14

    How many values are you POSTing?

    I'm not sure it sounds like your problem was solved. One thing that has not been mentioned is that you may have overshot your php max_input_vars limit.

    Php is silent when you overshoot this limit, so you'll have to check the warning log, or check it this way:

    1. Count the POST array values. Scripting in var_dump($_POST); (in a safe production sandbox environment) will do this best, as you can look at the final value output to see where the POST array "cuts off".

    2. Next, run a script to output the php information using the function: phpinfo(). Check the value of "max_input_vars".

    3. If the POST array count == the "max_input_vars" value, then you have overshot the limit.

    In your case, it may be the case that the submit input would have been included later in the POST.

    To edit the value (to 5000 in this example) in php.ini, add or edit this line: max_input_vars = 5000

提交回复
热议问题