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?
Asked
Active
Viewed 383 times
0
-
can you share the code? – amit_183 Aug 18 '15 at 05:01
-
whole script files are here: http://gandomy.ir/download/FormBuilder.rar – Gandom Aug 18 '15 at 05:10
2 Answers
0
Simply use the maxlength "tag".
For example:
<input type="text" name="name" maxlength="10" />
So now the user can only enter 10 characters.
-
thank you but it is not my answer. name of the input is too long(for example more than 50 characters) not input value – Gandom Aug 18 '15 at 05:42
-
0
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

Gandom
- 63
- 1
- 8