Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

form ID's and name

 
   Web Hosting and Web Master Forums (Home) -> Webmaster RSS
Next:  How do you unload unused domains?  
Author Message
Jeff

External


Since: Mar 05, 2006
Posts: 97



(Msg. 1) Posted: Tue Sep 26, 2006 1:06 am
Post subject: form ID's and name
Archived from groups: alt>www>webmaster (more info?)

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?

Jeff

 >> Stay informed about: form ID's and name 
Back to top
Login to vote
www

External


Since: Jun 29, 2003
Posts: 720



(Msg. 2) Posted: Tue Sep 26, 2006 7:15 am
Post subject: Re: form ID's and name [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Tue, 26 Sep 2006 01:06:41 GMT, Jeff <dont_bug_me RemoveThis @all.uk> wrote:

> 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?
>
> Jeff

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
POST.

if ($ENV{'REQUEST_METHOD'} eq 'POST')
read(STDIN, $input, $ENV{'CONTENT_LENGTH'});
else
$input = $ENV{QUERY_STRING};

Have fun!

Matt


--
Veritas Vincti
http://www.probertencyclopaedia.com

 >> Stay informed about: form ID's and name 
Back to top
Login to vote
Toby Inkster

External


Since: Aug 07, 2006
Posts: 49



(Msg. 3) Posted: Tue Sep 26, 2006 8:21 am
Post subject: Re: form ID's and name [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Jeff wrote:

> <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?

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 ~ http://tobyinkster.co.uk/contact
 >> Stay informed about: form ID's and name 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Form to fax - Hi, We are working on a project for a client who wants an online form which when filled out and submitted, gets faxed to the client's fax machine. Any recommendations of form to fax gateways/scripts etc.? Thank you and with kind regards Irfan..

Form help? - Okay I put a simple contact form on my site. Would someone mind looking at it to see if it can be used to send spam from the server/my site? I really don't want to have that happen. http://www.paidtoreads.com/contact.php Heidi -- Now playing: Winamp..

CSS and FORM's. - I've actuall never liked tables, but having been critisized for not using them has gotten me into the bad habit of using tables too much. (I like using the H* tags) Now I'm trying to get back to non-tables using CSS, the issue of lining up form fields..

Form Help - Looking for individual to quickly make me a form for a client of mine. This is what they want done: Qoute: "We would like this page to have our contact info on it but as well a form that people can fill out to be added to our mailing list. Is it po...

Form Help - This form is from a freeware template that I downloaded. <div class="clear"></div> <p><b class="yellow">Contact Us</b></p> <form action="#" method="post" enctype="mult...
   Web Hosting and Web Master Forums (Home) -> Webmaster All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]