View Single Post
  #1 (permalink)  
Old 04-05-06, 05:07 PM
sondogg's Avatar
sondogg sondogg is offline
Newbie Coder
 
Join Date: Feb 2006
Posts: 59
Thanks: 0
Thanked 0 Times in 0 Posts
Problem with email script

hey guys,

I've got a flash form that is sending variables name, email and comments via post method to my script.

It seems to be sending to the script but when I check the email it only has:

Name:
Email:
Comments:

but it doesn't display any of the variables. Here is my script:

PHP Code:

<?php

include ('./Connections/dbc.php'); //included for the escape_data function.

$name =  escape_data($_REQUEST['name']);
$email =  escape_data($_REQUEST['email']);
$comments =  escape_data($_REQUEST['comments']);

$body "Name:  " $name "\nEmail:  " $email "\nComments:  " $comments "\n";

mail('my_email_address''Comments from your site.'$body'From: my_email_address'); 
 
?>
Let me know if I'm doing something wrong or if there may be something wrong with my flash file.

Thanks

Sonny
Reply With Quote