Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.


MurrayM

2456 posts

Uber Geek

ID Verified
Trusted
Lifetime subscriber

#116039 16-Apr-2013 16:05
Send private message

Can anyone tell me what the maximum length of an HTML form field "name" attribute is?

What I've discovered is that this form field is ok:

<input name="1234567890123456789012345678901234567890123456789012345678901234" type="text" size="30" maxlength="30" value="">

But that this isn't ok:

<input name="12345678901234567890123456789012345678901234567890123456789012345" type="text" size="30" maxlength="30" value="">

The difference is that the first example has a Name attribute that is 64 characters long and the second has a Name attribute that is 65 characters long.

On a web server that I use that's running Apache 2.2.3 the first works and the second fails, so it looks like the maximum length you can have is 64 characters.  But on another web server that I use that is running Apache 2.2.4 both examples work ok.

I've tried looking on the Apache site to see if this is specified anywhere but I'm not familiar with the site and I can't seem to find any documentation about this.  Can anyone comment?

Create new topic

This is a filtered page: currently showing replies marked as answers. Click here to see full discussion.

ubergeeknz
3344 posts

Uber Geek

Trusted
Vocus

  #800292 16-Apr-2013 16:09
Send private message

Could it be that the POST data is exceeding some limit, rather than anything to do with the form itself?

edit: it seems to be related to some security packages, eg. Suhosin, which makes sense.  Why do you want to use a name longer than 64 chars anyway?

Create new topic





News and reviews »

Air New Zealand Starts AI adoption with OpenAI
Posted 24-Jul-2025 16:00


eero Pro 7 Review
Posted 23-Jul-2025 12:07


BeeStation Plus Review
Posted 21-Jul-2025 14:21


eero Unveils New Wi-Fi 7 Products in New Zealand
Posted 21-Jul-2025 00:01


WiZ Introduces HDMI Sync Box and other Light Devices
Posted 20-Jul-2025 17:32


RedShield Enhances DDoS and Bot Attack Protection
Posted 20-Jul-2025 17:26


Seagate Ships 30TB Drives
Posted 17-Jul-2025 11:24


Oclean AirPump A10 Water Flosser Review
Posted 13-Jul-2025 11:05


Samsung Galaxy Z Fold7: Raising the Bar for Smartphones
Posted 10-Jul-2025 02:01


Samsung Galaxy Z Flip7 Brings New Edge-To-Edge FlexWindow
Posted 10-Jul-2025 02:01


Epson Launches New AM-C550Z WorkForce Enterprise printer
Posted 9-Jul-2025 18:22


Samsung Releases Smart Monitor M9
Posted 9-Jul-2025 17:46


Nearly Half of Older Kiwis Still Write their Passwords on Paper
Posted 9-Jul-2025 08:42


D-Link 4G+ Cat6 Wi-Fi 6 DWR-933M Mobile Hotspot Review
Posted 1-Jul-2025 11:34


Oppo A5 Series Launches With New Levels of Durability
Posted 30-Jun-2025 10:15



Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.



Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.