# Need basic php help

**URL:** <https://forum.kirupa.com/t/need-basic-php-help/210436>\
**Category:** Uncategorized\
**Created:** [December 18, 2006, 7:55pm UTC](https://forum.kirupa.com/t/need-basic-php-help/210436 "2006-12-18T19:55:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ripagiga06](https://avatars.discourse-cdn.com/v4/letter/r/838e76/32.png) [@ripagiga06](https://forum.kirupa.com/u/ripagiga06)\
**Post date:** [December 18, 2006, 7:55pm UTC](https://forum.kirupa.com/t/need-basic-php-help/210436/1 "2006-12-18T19:55:36Z")

</div>

im new to php and don’t know the proper way to write the code for my form.  
i know the problem is in both lines with the multiple $\_POST i just don’t know how to write it correctly. please help asap.

\<?php  
$sendTo = “[name@domain.com](mailto:name@domain.com)”;  
$subject = “Party Request Message”;

$headers = "From: " . $\_POST[‘name’];  
$headers .= “\<” . $\_POST[‘email’] . "\>  
";  
$headers .= "Reply-To: " . $\_POST[‘email’] . "  
";  
$headers .= "Return-Path: " . $\_POST[‘email’];  
$message = "Phone: " . $\_POST[‘phone’];  
$message = "Date: " . $\_POST[‘day’] “/” $\_POST[‘month’] “/” $\_POST[‘year’];  
$message = "Number of guests: " . $\_POST[‘guests’];  
$message = "Start Time: " . $\_POST[‘hour’] “:” $\_POST[‘minute’];  
 $message = "Type of Occasion: " . $\_POST[‘occasion’];  
$message = "Private Room: " . $\_POST[‘room’];  
$message = $\_POST[‘message’];

mail($sendTo, $subject, $message, $headers);  
?\>
