form ID's and name

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

   Let's say we have a form element.

<input type="text" name="a" id="b" value="some_value">

Does the ID arrive at the server, or is it only the name? Does this vary
by browser?


Re: form ID's and name

Quoted text here. Click to load it

All the supplied values and choices are packaged up and sent to the
server (or an email address).

Whether this input is available through stdin or in the environment
variable QUERY_STRING will depend upon the submission method - GET or

if ($ENV eq 'POST')
     read(STDIN, $input, $ENV);
     $input = $ENV;

Have fun!


Veritas Vincti

Re: form ID's and name

Jeff wrote:

Quoted text here. Click to load it

Only the name.

The ID is for different purposes -- e.g. associating a <label> element
with the <input>, styling, scripting, etc.

Toby A Inkster BSc (Hons) ARCS
Contact Me  ~

Site Timeline