thenewguy Posted June 16, 2008 Share Posted June 16, 2008 hi, i'm not a complete noob to php but i've rarely used it...i don't quite know how to explain but this is my php script for my feedback submission form: <?php $email = $_REQUEST['email'] ; $message = $_REQUEST['message'] ; $name = $_REQUEST['name']; $number = $_REQUEST['number']; $company = $_REQUST['company']; mail( "blank@blank.co.uk", "Feedback Form Results", $message, "From: $email" ); at the moment when i check the email it only submits the information in the "message" field, what i want it to do is retrieve all the information (name, number, company etc) entered in the form, i've tried a few methods but nothing :s would appreciated any help, thanks! Quote Link to comment https://forums.phpfreaks.com/topic/110453-feedback-form-help/ Share on other sites More sharing options...
rhodesa Posted June 16, 2008 Share Posted June 16, 2008 <?php $keys = array('email','message','name','number','company'); $msg = ""; foreach($keys as $key) $msg .= "{$key}: {$_POST[$key]}\n"; mail("blank@blank.co.uk","Feedback Form Results",$msg,"From: ".$_POST['email]); ?> Quote Link to comment https://forums.phpfreaks.com/topic/110453-feedback-form-help/#findComment-566682 Share on other sites More sharing options...
ober Posted June 16, 2008 Share Posted June 16, 2008 But that's not doing any validation... which you might want to consider. Quote Link to comment https://forums.phpfreaks.com/topic/110453-feedback-form-help/#findComment-566693 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.