Trouble with $_POST using <select>

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
dlparker47
Forum Newbie
Posts: 3
Joined: Wed Jul 08, 2009 3:20 pm

Trouble with $_POST using <select>

Post 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";
Reviresco
Forum Contributor
Posts: 172
Joined: Tue Feb 19, 2008 4:18 pm
Location: Milwaukee

Re: Trouble with $_POST using <select>

Post by Reviresco »

Code: Select all

$_POST["styleofhome"]
Post Reply