S
Seeker
Hi!
Is it acceptable to start an element name with a "-" character? For
example...
Username 1:<input name="UserPass1" size="32"><br>
Password 1:<input name="-UserPass1" size=16"><br>
....I'm doing some form processing and I'm trying to find a generic way to
identify a form element that relates to the previous one. Basically, if an
element doesn't begin with a dash, add a <BR> tag before appending it's
value.
Alternately I could identify the prior element like this...
Username 1:<input name="+UserPass1" size="32"><br>
Password 1:<input name="UserPass1" size=16"><br>
.... and only append <BR> tags to the end of values if the name does not
begin with a "+"
I just want to be sure I can use non alpha characters at the beginning of an
element name. (If there are better characters than "+" or "-" to use I'd
appreciate knowing.)
Is it acceptable to start an element name with a "-" character? For
example...
Username 1:<input name="UserPass1" size="32"><br>
Password 1:<input name="-UserPass1" size=16"><br>
....I'm doing some form processing and I'm trying to find a generic way to
identify a form element that relates to the previous one. Basically, if an
element doesn't begin with a dash, add a <BR> tag before appending it's
value.
Alternately I could identify the prior element like this...
Username 1:<input name="+UserPass1" size="32"><br>
Password 1:<input name="UserPass1" size=16"><br>
.... and only append <BR> tags to the end of values if the name does not
begin with a "+"
I just want to be sure I can use non alpha characters at the beginning of an
element name. (If there are better characters than "+" or "-" to use I'd
appreciate knowing.)