Re: How to get value from drop down box to e-mail with php




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>

etc, etc,

.



Relevant Pages

  • Re: Activating Windows XP
    ... > have deleted all of your stuff, thus you would need to reinstall all of ... > You're the only one who knows what you used to have and what's missing ... > and your friend is the only one who knows what he did to the computer. ... > and have them fix it. ...
    (microsoft.public.windowsxp.setup_deployment)
  • My D: Drive is Missing!!
    ... so my dads "friend" came to "fix" our computer the other day. ... really didnt do anything that I probably couldn't have done, ... I noticed something was missing one day when I opened up My ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: Giving up Tables for DIVs... 2 questions though
    ... First things first, fix your HTML. ... As for the missing closing tags, that was a bad cut and paste job... ...
    (comp.infosystems.www.authoring.stylesheets)
  • Re: Giving up Tables for DIVs... 2 questions though
    ... First things first, fix your HTML. ... let alone XHTML. ... you're missing the BODY and HTML closing tags. ...
    (comp.infosystems.www.authoring.stylesheets)
  • Re: Menu bar is Gone
    ... You sent a great URL and maybe that info will fix it. ... it might be that friend is ... :> Someone just called me on the phone to find out how to get his Menu bar. ... :> It's missing. ...
    (microsoft.public.word.application.errors)