# HELP: Simple PHP Email Form

**URL:** https://forum.kirupa.com/t/help-simple-php-email-form/320641
**Category:** programming
**Created:** [March 29, 2011, 8:28am UTC](https://forum.kirupa.com/t/help-simple-php-email-form/320641 "2011-03-29T08:28:50Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![BUroKHUli](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/burokhuli/32/190_2.png) [@BUroKHUli](https://forum.kirupa.com/u/BUroKHUli)
#### Post date: [March 29, 2011, 8:28am UTC](https://forum.kirupa.com/t/help-simple-php-email-form/320641/1 "2011-03-29T08:28:50Z")

</div>

Hi, I was able to download a free email php form and modified it a little bit. It works fine for me but the thing is, even if without any entry on the FORMS fields, it will send to my email. I tried to search for trapping methods but I just don’t know much about PHP, super newbie. Can someone help me with this one? I spent 2 hours looking at email php forms but just got errors everytime I incorporate them to this script.

here is the code:

\<?php

$email = $\_REQUEST[‘email’] ;  
$message = $\_REQUEST[‘message’] ;

mail( "aer677@gmail.com", “Asta Trading - Web Inquiry”, “$message”, “From: $email” );

?\>
