Contact form - please help!

Hi everyone,

If anyone can help me with this problem I’d be very much appreciative!

I’m trying to get my contact page to work and it won’t :frowning: The site is here if you want to look at it, the contact page is in the clinic info button:

I’ve tried to set it up using instance names for the text fields rather than variables because I was reading another thread here that suggested it. I can’t seem to get it to send an email to me though.

Here is the text in my index.php file:

$name = $_GET[‘name’];
$phone = $_GET[‘subject’];
$email = $_GET[‘message’];
$hearabout = $_GET[‘email’];

$to .= "[email protected]";
$subject .= "$subject
$msg .= "$name
$msg .= "$message
$msg .= "$email
$headers .= "From: $name <$email>
mail($to, $subject, $msg, $headers);

The actionscript on my send button is:

on (release) {
//use a loadVars Object - can read about it in help in flash
var nLv:LoadVars = new LoadVars(); = yourNameFieldName.text;
nLv.subject = yourSubjectFieldName.text;
nLv.message = yourMessageFieldName.text; = yourEmailFieldName.text;
nLv.sendAndLoad(“”, nLv, “GET”);

gotoAndStop (2);


The instance names on my fields are: name, subject, message and email.

Can anyone see what I’m doing wrong?

Thanks very much in advance!