Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6882583
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T05:16:18+00:00 2026-05-27T05:16:18+00:00

As the title says, are there limits and/or prohibited characters for form field names

  • 0

As the title says, are there limits and/or prohibited characters for form field names?

  • If I use an sha512() hash for field name, are there drawbacks to this (it’s pretty lengthy)?
  • Or, are there any drawbacks when using -:x:©:y: as field name?
  • Or, may I use a serialized array for field name?
  • Or, what if the field contains a space character?
  • What about “/downloads/ready/games/” as a key?

I bet, this isn’t HTML specific, but more PHP (scripting language) specific, whether after the posting, the values can be read. Theoretically, it may also apply to array keys in general.

One more thing I thought about, the usage of “readable” form fields has become so popular/mainstream because forms are mostly used for storing data inside a database, where field name resembles the column within database. Correct me if I’m wrong.

So, yes, am I free to use whatever I want in these forms, or I may end up with errors/unreadable data?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T05:16:19+00:00Added an answer on May 27, 2026 at 5:16 am

    The HTML5 spec defines the allowed values for name attributes on <form> elements.

    The value must not be the empty string, and the value must be unique amongst the form elements in the forms collection that it is in, if any.


    Of course it also defines allowed values for the name attribute on form controls (<input>, <textarea>, &c.) (emphasis added).

    4.10.19.1 Naming form controls

    The name content attribute gives the name of the form control, as
    used in form submission and in the form element’s elements object.
    If the attribute is specified, its value must not be the empty string.

    Any non-empty value for name is allowed, but the names “_charset_” and “isindex” are special:

    isindex
    This value, if used as the name of a Text control that is the first control in a form that is submitted using the
    application/x-www-form-urlencoded mechanism, causes the submission
    to only include the value of this control, with no name.

    _charset_
    This value, if used as the name of a Hidden control with no value attribute, is automatically given a value during
    submission consisting of the submission character encoding.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

so basically like the title says is there a way to use NSSortDescriptor to
As title says, is there a way to send form when element outside of
As title says, is there any way to pull something like this up?: std::set<boost::shared_ptr<MyClass>>
As the title says, is there any way to get ahold of this information?
As the title says, are there limits (if any) for session variables or they're
I currently have this written but the title says is there a better way
Like the title says, is there a way to deal with this? I have
as the title says, this way https://stackoverflow.com/questions/9211034/how-to-implement-sso seems too Tedious, is there any other
As the title says, is there a dictionary similar to Objective-C's NSDictionary for C++?
As the title says, is there a way to make the maximum value of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.