A Note About Names

While you're free to choose any name you want for a form element, be aware that circumstances may impose constraints on you.

For example, if your form elements (loosely called “fields”) are going to be matched to database fields, the person who is programming the database interface may ask you to match the names exactly. If you wish to use JavaScript to verify the form's contents before it is sent off to the server, then your form elements should have names that are valid as JavaScript variables; it simplifies the JavaScript code immensely.

If you're concerned about either of these, here's a recommendation for “safe” form element names. Use only letters, digits, and the underscore character. Don't use blanks or other punctuation marks. So, instead of name="sale price!", use name="sale_price" or name="salePrice".