allowed length for input name attribute

433 Views Asked by At

I have a PHP script that will generate HTML forms dynamically. This script write text of input label in the name attribute of input. my problem is that when the name attribute text is too long browser not send that input. Is there any way to submit these forms correctly?

2

There are 2 best solutions below

0
On BEST ANSWER

Thank you every body. My problem solved. I changed suhosin setting in my server. I set these field to 256:

suhosin.post.max_array_index_length

suhosin.post.max_name_length
2
On

Simply use the maxlength "tag".

For example:

<input type="text" name="name" maxlength="10" />

So now the user can only enter 10 characters.