# Contact form

**URL:** <https://forum.kirupa.com/t/contact-form/271978>\
**Category:** Uncategorized\
**Created:** [September 30, 2008, 10:40pm UTC](https://forum.kirupa.com/t/contact-form/271978 "2008-09-30T22:40:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![urbaneve](https://avatars.discourse-cdn.com/v4/letter/u/839c29/32.png) [@urbaneve](https://forum.kirupa.com/u/urbaneve)\
**Post date:** [September 30, 2008, 10:40pm UTC](https://forum.kirupa.com/t/contact-form/271978/1 "2008-09-30T22:40:07Z")

</div>

okay – i was able to get the contact form to work  
but…

when i receive the email it doesnt show the persons infomation  
where did i go wrong?

here is the AS code i used on the submit button:

```auto
on (release) {
	loadVariablesNum("form.php", 0, "POST");
	gotoAndStop(2);
}

```

and here is the PHP scripting that i used:

```php
<?

   $sendTo = "info@energycraftinc.com";
   $subject = "Spray Foam Insulation";
   
   $msg = "Name: $name

";
   $msg .= "Email: $email

";
   $msg .= "Address: $address

";
   $msg .= "Phone:	$phone

";
   $msg .= "Mobile:	$mobile

";
   $msg .= "Message: $message

";

  mail($sendTo, $subject, $msg, "From: 4sg
Reply-To: $email
");

?> 

```

once i fill out the form and i receive the email this is all that is get:

```auto

Name:
Email:
Address:
Phone:
Mobile:
Message:

```

it doesnt display the users information

can someone help me out?

thanks
