0

Looking for help, I'm creating a form that would be filled in online and is then sent to me via email. I cant figure out how to get the email to populate a drop-down menu option.

Here is the code of the email coming to me:

Name: [output name='Name']
Street Address: [output name='Street address']
City, State/providence : [output name='City, State/providence ']
Postal Code: [output name='Postal Code']
Country: [output name='Country']
Phone: [output name='Phone']
E-Mail Address: [output name='Email']
wheel model purchased: [output name='wheel model']
[output type='environment' name='HTTP_USER_AGENT']
[output type='environment' name='HTTP_HOST']

The "wheel model purchased" is a dropdown in the form, but will not populate with the option chosen??

Code from form I've created:

<td>Phone:</td><td colspan="4"><input name="Phone" type="text" id="Phone" size="25" /></td>
	</tr>
    <tr>
		<td>Email address:</td>
		<td colspan="4"><input name="Email" type="text" id="Email" size="25" /></td>
	</tr>
    <tr>
		<td>wheel model purchased:</td><td colspan="4"><select class=frmBg size="1" id="wheel model">

        		<option value="">Select One</option>
                        <option value="Aspin">Aspin</option>
                                <option value="AspinSL">Aspin SL</option>
                                <option value="Cross">Cross</option>
                                <option value="Dauphine">Dauphine</option>
                                <option value="Dauhpine650">Dauphine 650c</option>
                                <option value="Echelon">Echelon</option>
                                <option value="EchelonSL">Echelon SL</option>
                                <option value="ElanB">Elan - black</option>
                                <option value="ElanS">Elan - silver</option>
                                <option value="Elan650">Elan 650c</option>
                                <option value="ElanRS">Elan RS</option>
                                <option value="151">P-Town</option>
                                <option value="Disc">Carbon Disc</option>
                                <option value="TT58">Carbon TT58</option>
                                <option value="TdF58">Carbon TdF58</option>
                                <option value="TdF58c">Carbon TdF58 clincher</option>
                                <option value="TdF58650">Carbon TdF58 650c</option>
                                <option value="TdF38">Carbon TdF38</option>
                                <option value="TdF38c">Carbon TdF38 clincher</option>
                                <option value="Track">Track - Carbon</option>
                                <option value="Tracka">Track - alloy</option>
                                <option value="Trackdisc">Track Disc</option>
                                <option value="VigorSL">Vigor SL</option>
                                <option value="VigorB">Vigor - black</option>
                                <option value="VigorS">Vigor - silver</option>
                                <option value="VigorRS">Vigor RS</option>

Thanks

Edited by Ezzaral: Added code tags. Please use them to format any code that you post.

3
Contributors
2
Replies
5
Views
7 Years
Discussion Span
Last Post by almostbob
0

Is it really okay that you don't have name='wheel model' on your <SELECT> tag?

Have you tried doing <option value = 'yourVARIABLE'>yourVARIABLE</option> ?

0

shineha's picked it
inputs require a name, value pair to get any output
'id' is used to reference the tag in the dom, for javascript, but not on form submission
no name, no value <select class=frmBg size="1" name='wheel model' id="wheel model"> a html instruction page on the <select> tag (w)(sh)ould tell you this requirement,
unfortunately its always about last in the instructions :P

sinmple <input> its about the first thing in the instructions
dos v'danye

Edited by almostbob: n/a

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.