Page 1 of 1

Trouble with $_POST using <select>

Posted: Thu Jul 09, 2009 2:14 pm
by dlparker47
I am trying to send information gathered from my survey form via email.

I am hung up on taking info from my <select> input, can not find an answer for some reason.
:banghead:

Code: Select all

<p><strong>Home Style</strong><br>
<select name="styleofhome">
        <option value="Single Story Concrete Slab">Single Story Concrete Slab</option>
        <option value="Single Story W/Basement/Crawl Space">Single Story W/Basement/Crawl Space</option>
        <option value="Two Story Concrete Slab">Two Story Concrete Slab</option>
        <option value="Two Story W/Basement/Crawl Space">Two Story W/Basement/Crawl Space</option>
</select></p>

here is the msg variable am I doing this correctly?

Code: Select all

$msg .= "Home Style: $_POST[name= "styleofhome" value= ""]\n";

Re: Trouble with $_POST using <select>

Posted: Thu Jul 09, 2009 2:18 pm
by Reviresco

Code: Select all

$_POST["styleofhome"]