# Php

**URL:** <https://forum.kirupa.com/t/php/328924>\
**Category:** Uncategorized\
**Created:** [July 3, 2012, 11:17am UTC](https://forum.kirupa.com/t/php/328924 "2012-07-03T11:17:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tolu93](https://avatars.discourse-cdn.com/v4/letter/t/258eb7/32.png) [@tolu93](https://forum.kirupa.com/u/tolu93)\
**Post date:** [July 3, 2012, 11:17am UTC](https://forum.kirupa.com/t/php/328924/1 "2012-07-03T11:17:58Z")

</div>

guys, pls i need you to help check my php code.it aint working and am new to php also  
\<?php  
$username = $\_POST[‘Name’];  
$email = $\_POST[‘Email’];  
if(isset($\_POST[‘submit’])) {  
($\_POST[‘Name’] == “$username”)||($\_POST[‘Email’] == “$email”)||($\_POST[‘Message’] =="$message");

$to = "tolulope\_odumosu@yahoo.com";  
$subject = “Contact Us”;  
$email = $\_REQUEST[‘Email’] ;  
$message = $\_REQUEST[‘Message’] ;  
$headers = “From: $Email”;  
$sent = mail($to, $subject, $message, $headers);  
if($sent)  
{  
print “Your mail was sent successfully”;  
}  
else  
{print “We encountered an error sending your mail”; }

}

?\>
