Reputation: 63
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?
Upvotes: 0
Views: 477
Reputation: 63
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
Upvotes: 0
Reputation:
Simply use the maxlength "tag".
For example:
<input type="text" name="name" maxlength="10" />
So now the user can only enter 10 characters.
Upvotes: 0