# Contact form - please help!

**URL:** <https://forum.kirupa.com/t/contact-form-please-help/239621>\
**Category:** flash\
**Created:** [September 24, 2007, 9:56am UTC](https://forum.kirupa.com/t/contact-form-please-help/239621 "2007-09-24T09:56:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![davidg369](https://avatars.discourse-cdn.com/v4/letter/d/6a8cbe/32.png) [@davidg369](https://forum.kirupa.com/u/davidg369)\
**Post date:** [September 24, 2007, 9:56am UTC](https://forum.kirupa.com/t/contact-form-please-help/239621/1 "2007-09-24T09:56:41Z")

</div>

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 ☹ The site is here if you want to look at it, the contact page is in the clinic info button: [www.users.on.net/~davidgardner](http://www.users.on.net/~davidgardner)

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:

\<?php  
$name = $\_GET[‘name’];  
$phone = $\_GET[‘subject’];  
$email = $\_GET[‘message’];  
$hearabout = $\_GET[‘email’];

$to .= "myemail@gmail.com";  
$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();  
nLv.name = yourNameFieldName.text;  
nLv.subject = yourSubjectFieldName.text;  
nLv.message = yourMessageFieldName.text;  
nLv.email = yourEmailFieldName.text;  
nLv.sendAndLoad(“[http://www.users.on.net/~davidgardner/index.php](http://www.users.on.net/~davidgardner/index.php)”, 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!

David
