# Noob to php needs help! simple form mailer

**URL:** <https://forum.kirupa.com/t/noob-to-php-needs-help-simple-form-mailer/200648>\
**Category:** Uncategorized\
**Created:** [September 13, 2006, 11:23pm UTC](https://forum.kirupa.com/t/noob-to-php-needs-help-simple-form-mailer/200648 "2006-09-13T23:23:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![natronp](https://avatars.discourse-cdn.com/v4/letter/n/87869e/32.png) [@natronp](https://forum.kirupa.com/u/natronp)\
**Post date:** [September 13, 2006, 11:23pm UTC](https://forum.kirupa.com/t/noob-to-php-needs-help-simple-form-mailer/200648/1 "2006-09-13T23:23:10Z")

</div>

i’m submitting vars from flash to a simple PHP script which needs to compose an email with the vars… it no worky! what am i doing wrong?

```auto

```

\<?php  
$iname=$iname;  
$iphone=$iphone;  
$iemail=$iemail;  
$recip=$recip;  
$idate=$idate;  
$itime=$itime;  
$iprop=$iprop;

$msg = "Message from:_$iname (via Savannah Lakes website)  
";  
$msg .= "Requested on:_$idate at:_$itime  
";  
$msg .= "Regarding Property:_$iprop

";  
$msg .= "Contact Info for\_$iname  
";  
$msg .= "phone:_$iphone  
";  
$msg .= "email:_$iemail  
";  
$from=$iemail;

$mailheaders = "From: ( $from )\<\>  
";  
$mailheaders .= "Reply-To:\_$iemail

";

$to="\_$recip";  
mail($to, $subject, $msg, $mailheaders);  
$status=“good”;  
echo $status;  
?\>
