...

View Full Version : Php Send Mail Not Sending



stevan
12-25-2007, 08:21 PM
I am trying to use Php send mail. The problem I am having is when I use this on the page

<select name="color_choice">
<option value="red">red</option>
<option value="blue">blue</option>
</select>


and this in the send mail

$color_choice= $_REQUEST['color choice'] ;

I get nothing sent


What do I have to use or do I have a mistake All text items are being sent

THXS STeve

toddandrae
12-25-2007, 08:24 PM
The underscore, maybe?

stevan
12-25-2007, 08:27 PM
No if you do that you get error

toddandrae
12-25-2007, 08:40 PM
What is the error?

stevan
12-25-2007, 08:43 PM
Parse error: syntax error, unexpected T_STRING in /home2/cruisew/public_html/sendmail.php on line 4

This is the line

$color choice= $_REQUEST['color choice'] ; When I do this I get error

toddandrae
12-25-2007, 09:22 PM
$color_choice = $_REQUEST['color_choice'];

That's the underscore I was talking about

stevan
12-25-2007, 09:27 PM
My fault I did not see what I did at first

I had this

$color_choice= $_REQUEST['color_choice'] ;

Should be this

$message = $_REQUEST['color_choice'] ;

THXS



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum