# Posting varables with php

**URL:** <https://forum.kirupa.com/t/posting-varables-with-php/221535>\
**Category:** Uncategorized\
**Created:** [April 4, 2007, 11:18pm UTC](https://forum.kirupa.com/t/posting-varables-with-php/221535 "2007-04-04T23:18:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![BiGg\_RiE](https://avatars.discourse-cdn.com/v4/letter/b/858c86/32.png) [@BiGg\_RiE](https://forum.kirupa.com/u/BiGg_RiE)\
**Post date:** [April 4, 2007, 11:18pm UTC](https://forum.kirupa.com/t/posting-varables-with-php/221535/1 "2007-04-04T23:18:45Z")

</div>

my php code is as follows:

\<?php  
$sendTo = "myemail@mydomain.com";  
$subject = “Info”;

$headers = "From: " . $\_POST[“firstname”];  
$headers .= “\<” . $\_POST[“email”] . "\>  
";  
$headers .= "Reply-To: " . $\_POST[“email”] . "  
";  
$headers .= "Return-Path: " . $\_POST[“email”];  
$message = $\_POST[“referalmethod”];  
$message = $\_POST[“message”];

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

I need to send about 10 more variables with this in addition to the 2 that are listed here:

“referalmethod”  
“message”

the only one that arrives in the email is “message”

how do I get the others to post in the body of the sent email message?

THX
