Stevan Posted December 25, 2007 Share Posted December 25, 2007 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 other text items are being sent THXS STeve Quote Link to comment https://forums.phpfreaks.com/topic/83163-php-send-mail-not-sending-everything/ Share on other sites More sharing options...
revraz Posted December 25, 2007 Share Posted December 25, 2007 Try using the underscore in your array $color_choice= $_REQUEST['color_choice'] ; Quote Link to comment https://forums.phpfreaks.com/topic/83163-php-send-mail-not-sending-everything/#findComment-423012 Share on other sites More sharing options...
Stevan Posted December 25, 2007 Author Share Posted December 25, 2007 Tryed that no error BUT no send either Quote Link to comment https://forums.phpfreaks.com/topic/83163-php-send-mail-not-sending-everything/#findComment-423014 Share on other sites More sharing options...
revraz Posted December 25, 2007 Share Posted December 25, 2007 Post the code Quote Link to comment https://forums.phpfreaks.com/topic/83163-php-send-mail-not-sending-everything/#findComment-423017 Share on other sites More sharing options...
Stevan Posted December 25, 2007 Author Share Posted December 25, 2007 <form name="form1" form method="post" action="sendmail.php"> <p>Email: <input name="email" type="text"> <br /> Message:<br /> <input name="message" type="text" size="40"> <br> <select name="color_choice"> <option value="red">red</option> <option value="blue">blue</option> </select> </p> <p> <br /> <input type="submit" /> </p> </form> <?php $email = $_REQUEST['email'] ; $message = $_REQUEST['message'] ; $color_choice= $_REQUEST['color_choice'] ; mail( "steve@url.com", "Feedback Form Results", $message, "From: $email" ); header( "Location: http://www.example.com/thankyou.html" ); Quote Link to comment https://forums.phpfreaks.com/topic/83163-php-send-mail-not-sending-everything/#findComment-423018 Share on other sites More sharing options...
revraz Posted December 25, 2007 Share Posted December 25, 2007 You're not doing anything with $color_choice in the mail() function. Maybe try $message = $_REQUEST['message'] ; $message .= $_REQUEST['color_choice'] ; Quote Link to comment https://forums.phpfreaks.com/topic/83163-php-send-mail-not-sending-everything/#findComment-423020 Share on other sites More sharing options...
Stevan Posted December 25, 2007 Author Share Posted December 25, 2007 Soory I did not see that BUT I changed what you said and that solved that problem BUT now I do not get the MESSAGE Quote Link to comment https://forums.phpfreaks.com/topic/83163-php-send-mail-not-sending-everything/#findComment-423021 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.