moise Posted January 19, 2007 Share Posted January 19, 2007 hello, i am trying to get my email to show just the message entered on my textarea, how would i get to do that? Because i am getting the following :name: mymaneemail: mymane@yahoo.comsubject: test again....message: testing! hope it'll be ok, this time, this timesubmit: Sendinstead of just the message posted (testing! hope it'll be ok, this time, this time)could you please help?here's the code...----$my_email = "myemail@yahoo.com";$errors = array();if($_SERVER['REQUEST_METHOD'] == "POST"){$form_input = $_POST;}elseif($_SERVER['REQUEST_METHOD'] == "GET"){$form_input = $_GET;}else{exit;}function build_message($request_input){if(!isset($message_output)){$message_output = "";}if(!is_array($request_input)){$message_output = $request_input;}else{foreach($request_input as $key => $value){if(!is_numeric($key)){$message_output .= "\n\n".$key.": ".build_message($value);}else{$message_output .= "\n\n".build_message($value);}}}return $message_output;}$message = build_message($form_input);$message = $message . "\n\n-- \nThank you for using http://tyreesetavares.com";$message = stripslashes($message);$subject = $_POST['subject'];$headers = "From: " . $form_input['email'] . "\n" . "Return-Path: " . $form_input['email'] . "\n" . "Reply-To: " . $form_input['email'] . "\n";mail($my_email,$subject,$message,$headers);------- Quote Link to comment Share on other sites More sharing options...
Jessica Posted January 19, 2007 Share Posted January 19, 2007 Your question doesn't make much sense and your code isn't formatted.Please rephrase and use the code (#) button Quote Link to comment 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.