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( "[email protected]", "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! 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("[email protected]","Feedback Form Results",$msg,"From: ".$_POST['email]); ?> 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. Link to comment https://forums.phpfreaks.com/topic/110453-feedback-form-help/#findComment-566693 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.