Hi,

The HTML4 spec reads:

"Each scripting language has its own conventions for referring to HTML
objects from within a script. This specification does not define a
standard mechanism for referring to HTML objects. However, scripts should
refer to an element according to its assigned name. Scripting engines
should observe the following precedence rules when identifying an
element: a name attribute takes precedence over an id if both are
set. Otherwise, one or the other may be used."

I looked this up because someone handed me a script which used the ID
attribute of an INPUT element with a param() call to retrieve the INPUT's
value.  In my tests on Apache, this didn't work.  My assumption is that ID
cannot be used to assign a name to a form element, or at least CGI.pm
won't pick it up.

Does anyone have any insight to this?

-lisa


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to