I provide a little piece of software called Huggins’ Email Form Script. You can see it here: http://JSH.us/hefs.
This posting won’t be particularly applicable except to people using this software.
I have some suggested improvements to the script. The current list is below. It is also posted on my site at http://JSH.us/h/hefs/huggins-email-form-script-suggested-improvements.htm.
I have crossposted the information here so you can easily make comments.
The whole purpose of this posting is to solicit your comments so please make those comments.
File Upload
Add a feature to support file upload along with the textual data. This would allow someone filling out a form to “attach” a file with it.
Questions include: what should the limits (e.g. file size) be? Should all addressees get an email copy of the file? Or should the file be stored in one place and referenced? What safeguards should be in place?
Additional Edits
State
Ensure that a two character US state code entered is a valid state code.
(See zip4.usps.com/zip4/zcl_2_landing_state.htm for a badly formatted list of US state codes. For background see www.usps.com/postalhistory/_rtf/StateAbbrev.rtf)
Phone – US
Validate that a phone number is in the format of a valid US phone format. Accept these formats:
999-999-9999
(999) 999-9999
(999)999-9999
999999999
999.999.999999
999/999-9999
999 999 9999
Regardless of the format entered, render the format to be one of the above, as chosen by the site.
ZIP+4 Code (US)
Allow a Zip+4 code to be entered as:
99999-9999
999999999
99999
If a dash is included, render the format to be one of the first two, as chosen by the site.
Contingent Requiredness
Based on the value of one field, make other fields required. For example, if a box is checked for shipping require the shipping address to be completed.
Your Comments
Again, please make your comments and feel free to make other suggestions.















