Click to See Complete Forum and Search --> : forms


emrald_dragon
11-22-2005, 01:21 AM
i'm a little brain fried. i have a very simple question
i am putting together some forms and using drop boxes, check circles, etc...

i know for the life of me i can't remember what "value" means.

i remember that name is basically for when i do required fields.
does value discrip what i want to show when the email is sent

sorry for the stupid question. :eek:

NogDog
11-22-2005, 01:39 AM
value="xxxx" is used to set the initial value for a form element, the value which will get tranmitted in the Post or Get data when you submit the form. Whether or not the value is viewable and/or changeable by the user depends on the type of form element in question. For a text type input element, it is the pre-filled value which can then be edited by the user. For a select list option, it's the value that gets sent to the form handler while the user sees/selects the text that is between the <option> and </option> tags, and so on....

thewebman
11-22-2005, 08:53 PM
one more note, giving the form elements submit and reset a value will give that element a visual name. example, <input type="submit" value="Submit or die"> will change the default Submit text to Submit or die.