使用ajax或普通发布时,查看max_input_vars会有区别吗?

html

<form id="saveform" method="post" action="saveform">
{a whole lot of input element}
<input type="submit" value="normal submit">
</form>

jQuery

var data = $('#saveform').serialize();
$.post('saveform', data);

Is there any difference in how server handles max_input_vars if I

  1. Post normal submit by clicking on submit-button in html above?
  2. Posting entire form through ajax with jQuery above?

Would the same limit apply (for max_input_vars)?

UPDATE A client of mine has a system I've built at a webhotell that has max_input_vars set to 1000 and I'm looking for a workaround because the webhotell refuses to change this number (and it's not possible to change with htaccess or php.ini). In worst case I would have to transfer my client to another webhotell but I'd rather not if there is an easy workaround.

i shall summarize the comments suggestions for future visitor reference:

the setting: max_input_vars

Suggestions

  • Combine multiple inputs send as one, split on server (Barmar,charlietfl )

  • slit the data, make multiple post requests (Dagon)

  • as the limit is applied to $_GET, $_POST and $_COOKIE superglobal separately, you can send half post and half get. (Dagon)

  • Change to a host that lets you make the changes you need for the client (Dagon). Most ideal if available

  • Send data in post body and extract with file_get_contents('php://input'). Would have empty $_POST (charlietfl)