# Why does'nt my form work?

**URL:** <https://forum.kirupa.com/t/why-doesnt-my-form-work/234117>\
**Category:** Uncategorized\
**Created:** [July 30, 2007, 6:00pm UTC](https://forum.kirupa.com/t/why-doesnt-my-form-work/234117 "2007-07-30T18:00:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![SR5](https://avatars.discourse-cdn.com/v4/letter/s/8e8cbc/32.png) [@SR5](https://forum.kirupa.com/u/SR5)\
**Post date:** [July 30, 2007, 6:00pm UTC](https://forum.kirupa.com/t/why-doesnt-my-form-work/234117/1 "2007-07-30T18:00:59Z")

</div>

Hi All!

I needed to know why does my flash form not work?  
I have used one of the tutorials on kirupa, but it seems like I dont recieve any mails after the submission…

Here is the PHP code :

```php

<?
$destination="sam.chikku@gmail.com";
$name=$_POST['name1'];
$email=$_POST['company'];
$mes=$_POST['email'];
$mes=$_POST['number'];
$mes=$_POST['message1'];
$subject="Message from $name" ;
$mes="Name : $name

Email: $email

Comments: $mes
";
mail($destination,$subject,$mes); ?>

```

and here is the actionscript on the submit button:

> 

on (release) {  
if (\_root.pgap.pages1.page5.name1 == “Name” ||  
\_root.pgap.pages1.page5.company == “Company” ||  
\_root.pgap.pages1.page5.email == “E-mail” ||  
\_root.pgap.pages1.page5.number == “Phone” ||  
\_root.pgap.pages1.page5.message1 == “Message” ||  
\_root.pgap.pages1.page5.name1 == “” ||  
\_root.pgap.pages1.page5.company == “” ||  
\_root.pgap.pages1.page5.email == “” ||  
\_root.pgap.pages1.page5.number == “” ||  
\_root.pgap.pages1.page5.message1 == “”) {  
\_parent.gotoAndStop(3);  
} else {  
\_parent.loadVariables(“email.php”, “POST”);  
\_parent.gotoAndStop(2);  
}  
}

Kindly let me know if there is any problem with this…

Thanks all  
Chikku
