ilikephp Posted October 25, 2011 Share Posted October 25, 2011 Hello, I am using the send mail form, everything is sent to my mail except the country field, it is sending blank. $name = $_REQUEST['name'] ; $phone = $_REQUEST['phone'] ; $email = $_REQUEST['email'] ; $country = $_REQUEST['country'] ; $message = $_REQUEST['message'] ; $headers = "From: $email"; $sent = mail( $to, $subject, $name."\n".$phone."\n".$email."\n".$country."\n".$message, $headers); How could it be fixed plz? Thx Link to comment https://forums.phpfreaks.com/topic/249769-request-a-list-box/ Share on other sites More sharing options...
Buddski Posted October 25, 2011 Share Posted October 25, 2011 Do some error checking on your data and see if its being sent across. $country = (isset($_REQUEST['country']) ? $_REQUEST['country'] : 'N/A'); Check your form to see if country doesnt have a typo or something. Link to comment https://forums.phpfreaks.com/topic/249769-request-a-list-box/#findComment-1282017 Share on other sites More sharing options...
ilikephp Posted October 25, 2011 Author Share Posted October 25, 2011 capital C :S Thanks a lot... Link to comment https://forums.phpfreaks.com/topic/249769-request-a-list-box/#findComment-1282025 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.