# PHP Newbie

**URL:** <https://forum.kirupa.com/t/php-newbie/167387>\
**Category:** programming\
**Created:** [October 27, 2005, 7:05pm UTC](https://forum.kirupa.com/t/php-newbie/167387 "2005-10-27T19:05:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![cyaan\_dun](https://avatars.discourse-cdn.com/v4/letter/c/8c91f0/32.png) [@cyaan\_dun](https://forum.kirupa.com/u/cyaan_dun)\
**Post date:** [October 27, 2005, 7:05pm UTC](https://forum.kirupa.com/t/php-newbie/167387/1 "2005-10-27T19:05:08Z")

</div>

Hello,

I am new to all server side stuff and I am using flash to create a simple email form for a Q and A section of my site. I used the php tutorial but it is not working and I am trying to figure out what I did wrong. It is a simple flash form with 5 named fields adhering to the example from this site. Here is the script that I used in the php. Can anybody help:

\<?php  
/\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\

- PHP 4.1.0+ version of email script. For more
- information on the mail() function for PHP, see
- [http://www.php.net/manual/en/function.mail.php](http://www.php.net/manual/en/function.mail.php)  
\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*/

$sendTo = "christian\_gordy@mac.com";  
$subject = “ask rudi question”;

$headers = “From: " . $\_POST[“Name”] .” “. $\_POST[“lastname”] . “\<” . $\_POST[“email”] .”\>  
";

$headers .= “Reply-To: [christian\_gordy@mac.com](mailto:christian_gordy@mac.com)” . $\_POST[“email”] . "  
";

$message = $\_POST[“message”];  
$city = $\_POST[“city”];  
$state = $\_POST[“state”];

mail($sendTo, $subject, $message, $headers, $city, $state);

?\> :red:
