Hello everyone:
I have a question about php script.
When a user fills out a small contact us page and we receive it from G-mail and we open the e-mail. In the header section we get James.Smith@net solhost.com
is there away to get rid of @netsolhost.com and just have his name. We have your hosting service with netsolutions.
Here is my script
Please see attached file for a better understanding.
Any help would be great.
_damon
I have a question about php script.
When a user fills out a small contact us page and we receive it from G-mail and we open the e-mail. In the header section we get James.Smith@net solhost.com
is there away to get rid of @netsolhost.com and just have his name. We have your hosting service with netsolutions.
Here is my script
Code:
<? if(isset($_POST['email'])) { $email_to = "dwong@lightlaboratory.com" ; $from = $_POST["Your_name"]; $email_subject = "Web Support Inquiry"; if(!isset($_POST['comments']) || !isset($_POST['Your_name']) || !isset($_POST['email'])) //{ died('We are sorry, but there appears to be a problem with the form you submitted.'); // } $comments = $_POST['comments']; $Your_name = $_POST['Your_name']; $email = $_POST['email']; $email_message = "Web Support Inquiry.\n\n"; function clean_string($string) { $bad = array("content-type","bcc:","to:","cc:","href"); return str_replace($bad,"",$string); } $email_message .= "Comments: ".clean_string($comments)."\n"; $email_message .= "Name: ".clean_string($Your_name)."\n"; $email_message .= "Email: ".clean_string($email)."\n"; $headers = 'From: '.$Your_name."\r\n". 'Reply-To: '.$email_from."\r\n" . 'X-Mailer: PHP/' . phpversion(); @mail($email_to, $email_subject, $email_message, $headers); header( 'Location: http://www.abc/thank_you.html' ) ; ?>
Any help would be great.
_damon
Comment