Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

maximum size for input field name?

Tags:

html

Two quick questions:

  1. What is the maximum size for the name element on an HTML hidden input field that is used in a form that is submitted using POST?

  2. What is the maximum size for the value element on a hidden HTML input field used in a form that is submitted using POST?

like image 698
David19801 Avatar asked Jan 05 '12 15:01

David19801


People also ask

What is the maximum character length of a field name?

dBase table field names have a ten-character limit, so the raster attribute tables also have a ten-character limit. GRID format, supported though a value attribute table (VAT), allows up to 16-character field names. The field length of a geodatabase raster attribute table can be longer, varying with each DBMS.

How do you set the maximum length of an input field?

Given an input field and the task is to set the minimum/maximum number of characters allowed in an input field in HTML. To set the maximum character limit in input field, we use <input> maxlength attribute. This attribute is used to specify the maximum number of characters enters into the <input> element.

What is the max length attribute of input tag used for?

The maxlength attribute specifies the maximum number of characters allowed in the <input> element.

What is the limit of characters in text field type?

How To: Use the Text Field. The Text field is one of the most generic and common data entry fields used to capture text type data—letters, numbers, and symbols. Text fields hold up to 255 characters in a single line.


2 Answers

The specification does not impose limits. You would have to test on a browser-by-browser basis (or work on the "Just don't be stupid" principle).

If you have enough data for it to be significant then you are probably better off caching it on the server (assuming you are populating the hidden inputs there and not with JS) and giving the browser a token instead.

like image 148
Quentin Avatar answered Oct 02 '22 23:10

Quentin


According to the specs, there is no documented limit, however PHP may limit you according to the max_file_size or other properties in php.ini. That's usually over 5MB though, so I wouldn't be worried.

like image 28
Madara's Ghost Avatar answered Oct 03 '22 00:10

Madara's Ghost