On Thu, 30 Oct 2003 10:42:30 -0000, "Stuart Palmer"
<tr**********@youcant.com> wrote:
Hi everyone,
I have a form with '/' in some of the field names, when I pass through to
the next page the field name comes back as though it's been htmlencoded, so
getting the value out of the field I need to convert this back to '/' with
the replace (same problem if I have a ',' in the name)
Is there an easy way to htmldecode or something what it converted to the
encoded versions? (I have written a short function to basically do all my
replaces for me, but I am guessing this isn't the ideal solution)
Better than a replace is simply not to name fields with any characters
other than alphanumeric. Including no spaces. Most languages have
issues with the slash and backslash, as well as quotation marks,
mathematical or comparison symbols and the like. Stick with A-Z, 0-9,
and hyphens and underscores.
Our programming convention is that field names in forms match
corresponding field names in databases, as well as variable names.
Some of us still use three letter designations, such as strLastName or
frmLastname to designate either data type or where the field
originates, but we don't mandate it.
Jeff