# I need some help in making a contact.php form

**URL:** <https://forum.kirupa.com/t/i-need-some-help-in-making-a-contact-php-form/331139>\
**Category:** programming\
**Created:** [May 26, 2013, 10:34pm UTC](https://forum.kirupa.com/t/i-need-some-help-in-making-a-contact-php-form/331139 "2013-05-26T22:34:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![chuckymafia](https://avatars.discourse-cdn.com/v4/letter/c/5f9b8f/32.png) [@chuckymafia](https://forum.kirupa.com/u/chuckymafia)\
**Post date:** [May 26, 2013, 10:34pm UTC](https://forum.kirupa.com/t/i-need-some-help-in-making-a-contact-php-form/331139/1 "2013-05-26T22:34:36Z")

</div>

I am trying to create a contact.php that sends me an email after someone fills up a form. I have the input name=“food” value=“Bad” type=“radio” and so on for other variables. I want to make them required and to then be included in my email. that is then sent to me.  
How would i need to code my contact.php to include my email address so that it only sends it to me and then includes these variables such as  
How was the food ? = $food  
So if I get 3 stars it says  
How was the food ? : Good  
Thanks in advance
