# Php help

**URL:** <https://forum.kirupa.com/t/php-help/230199>\
**Category:** Uncategorized\
**Created:** [June 23, 2007, 10:07pm UTC](https://forum.kirupa.com/t/php-help/230199 "2007-06-23T22:07:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![khujo56](https://avatars.discourse-cdn.com/v4/letter/k/13edae/32.png) [@khujo56](https://forum.kirupa.com/u/khujo56)\
**Post date:** [June 23, 2007, 10:07pm UTC](https://forum.kirupa.com/t/php-help/230199/1 "2007-06-23T22:07:40Z")

</div>

Hi

i did the php mail tutorial. i sent up a contact page and created the php file. i stored both files in the directory but when i fill out the form and hit send i get a error message “blarg” which is part of the php file when there is an error. what am i doing wrong.

the contact form is on this page  
[COLOR=#003366][http://www.iheartvacation.com/index-4.html[/COLOR]](http://www.iheartvacation.com/index-4.html%5B/COLOR%5D)  
[COLOR=#003366][/COLOR]  
[COLOR=#003366]php file:[/COLOR]

[COLOR=#003366]\<?php  
if(isset($\_POST[‘submit’])) {  
$to = “[jnr1975@hotmail.com](mailto:jnr1975@hotmail.com)”;  
$subject = “Contact Info”;  
$name\_field = $\_POST[‘name’];  
$email\_field = $\_POST[‘email’];  
$message = $\_POST[‘message’];

$body = “From: $name\_field  
E-Mail: $email\_field  
Message:  
$message”;

echo “Data has been submitted to $to!”;  
mail($to, $subject, $body);  
} else {  
echo “blarg!”;  
}  
?\> [/COLOR]
