Re: How to get value from drop down box to e-mail with php
- From: "Kimmo Laine" <spam@xxxxxxxxxxxxx>
- Date: Fri, 30 Jun 2006 08:59:32 +0300
"Syl" <david.hunter@xxxxxxxxx> wrote in message
news:1151631503.326607.307760@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
kandi111777 wrote:
I have a form that includes a drop down box. I can get all of the other
values to show up in an e-mail except for the drop down box values. Can
someone please help? -- I know the HTML isn't the greatest. The website
was originally created in FrontPage and the form broke. I'm just trying
to help out and fix it for a friend.
sendmail.php
$Subject = $_REQUEST['subject'];
<td width="88" align="right"><select name="Subject" size="1">
<option selected>Web Site</option>
<option>Company</option>
<option>Products</option>
<option>Store</option>
<option>Employee</option>
<option>(Other)</option>
</select> </td>
You're missing a value in the option of the drop down
Change all the options like this --> <option>Company</option>
to this --> <option value="company">Company</option>
to this --> <option value="employee">Employee</option>
That's not an issue, if value is not given, then anything that's inside the
<option></option> will be used instead. In this case for example
<option>Company</option> Company will be used since it lacks value.
--
"ohjelmoija on organismi joka muuttaa kofeiinia koodiksi" -lpk
spam@xxxxxxxxxxxxx | Gedoon-S @ IRCnet | rot13(xvzzb@xxxxxxxxxxxxx)
.
- References:
- How to get value from drop down box to e-mail with php
- From: kandi111777
- Re: How to get value from drop down box to e-mail with php
- From: Syl
- How to get value from drop down box to e-mail with php
- Prev by Date: Re: How to get value from drop down box to e-mail with php
- Next by Date: Re: How to get value from drop down box to e-mail with php
- Previous by thread: Re: How to get value from drop down box to e-mail with php
- Next by thread: Open-save .php file error instead of execute?
- Index(es):