1
<input type="hidden" value="12345">

I need to set value="12345" attribute to the size of 5,000 characters. What is a max characters I can set this attribute to when using POST method to send a form? Is it limited by the maximum POST method?

  • Does this answer your question? [is there a max size to the length of a hidden input in html?](https://stackoverflow.com/questions/1752768/is-there-a-max-size-to-the-length-of-a-hidden-input-in-html) – Dai Apr 05 '20 at 00:49

1 Answers1

1

It depends if you are using the POST or GET method for your form action.

More comprehensive answers are already available such as here: What is the maximum length of a URL in different browsers?

jcklopp
  • 451
  • 5
  • 9
  • I use POST method –  Apr 05 '20 at 01:48
  • 1
    From https://stackoverflow.com/questions/2880722/can-http-post-be-limitless There is no limit on the number of FORM elements you can pass via POST, but only on the aggregate size of all name/value pairs. While GET is limited to as low as 1024 characters, POST data is limited to 2 MB on IIS 4.0, and 128 KB on IIS 5.0. – jcklopp Apr 05 '20 at 02:51
  • 1
    Tnx @jcklopp. That's what I wanted to know. –  Apr 05 '20 at 15:51