On Mon, 29 Dec 2003 16:41:19 +0200 MaryJo scrawled this disquisition:
Quote:
I need a value returned from a form does anyone know how to do that ???
input type="hidden" name="DEFN" value=""
I need this value above populated with a value (Company Name - that I
click on) in my form. |
"Hidden" fields are just that --- Hidden so the user doesn't input
information into them. They're used to pass additional information to
your script about what to do with the form.
i.e. <input type="hidden" name="SENDTO" value="MaryJo (AT) company (DOT) com">
If you want your user to select from a choice of multiple companies and
all you want is the company name then use either radio buttons or a select
list.
Choose one: <br />
<input type="radio" name="DEFN" value="ABC Company" />ABC Company <br />
<input type="radio" name="DEFN" value="DEF Conglomerate" />DEFConglomerate<br />
<input type="radio" name="DEFN" value="XYZ Corporation" />XYZ Corporation<br />
OR <br />
Pick a Company of Interest: <br />
<select name="DEFN">
<option>ABC Company</option>
<option>DEF Conglomerate</option>
<option>XYZ Corporation</option>
</select>
The value is auto set to the option unless you use a separate value tag for
each option making the option simply a label.
FS