# A Little Help With Flash Form & Php!

**URL:** https://forum.kirupa.com/t/a-little-help-with-flash-form-php/10036
**Category:** Uncategorized
**Created:** [December 23, 2002, 4:01am UTC](https://forum.kirupa.com/t/a-little-help-with-flash-form-php/10036 "2002-12-23T04:01:53Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Kelly\_Nunes](https://avatars.discourse-cdn.com/v4/letter/k/b5e925/32.png) [@Kelly\_Nunes](https://forum.kirupa.com/u/Kelly_Nunes)
#### Post date: [December 23, 2002, 4:01am UTC](https://forum.kirupa.com/t/a-little-help-with-flash-form-php/10036/1 "2002-12-23T04:01:53Z")

</div>

Hey there people,

I was wondering if anyone out there could help me with this problem I’m having. I can’t seem to get the form in my flash file to communicate with my php script. the flash form works because I’ve continually tested it, but I never recieve any of my test e-mails. I have attached the files here. If you could please take a look at them and tell me what I’m doing wrong. Your help would be greatly appreciated.

Happy Flashing,

Kelly

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [January 1, 2003, 2:47pm UTC](https://forum.kirupa.com/t/a-little-help-with-flash-form-php/10036/2 "2003-01-01T14:47:25Z")

</div>

hey,  
it should work now, i changed the script, the files are attached below…\<:}

if you still can’t get it to work it must be summit to do with your server or sumthing

[http://www.siraz.co.uk/contact4.swf](http://www.siraz.co.uk/contact4.swf)

thats hosted on my space, fill that form out and it should send an email to your address, works like a peach \<:}

thanks \<:}

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [January 5, 2003, 3:07am UTC](https://forum.kirupa.com/t/a-little-help-with-flash-form-php/10036/3 "2003-01-05T03:07:39Z")

</div>

hey… here’s my own version of your contact4.fla and also my version of form.php

added a msg when php cannot send the email…

haven’t tested the .fla and .php files i have attached here (i don’t have any host with php installed), but it should work… if any problems, post a reply or something 🙂

the new form.php looks like this:

```php

<?
   $to = "kellynunes@lvcm.com";
   
/*
   $msg = "$name

";
   $msg .= "$message

";
*/

if($name=="" || $email=="" || $subject="" || $msg=="")
  {
     echo 'error';
     exit();
  }
if(@mail($to, $subject, $msg, "From: My web site
Reply-To: $email
"))
  echo 'sent=\"ok\"';
else echo 'sent=no';
?>

```

based on the variable ‘sent’, flash interprets wether he displays ‘email sent’ or ‘email not sent’…

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [January 5, 2003, 3:13am UTC](https://forum.kirupa.com/t/a-little-help-with-flash-form-php/10036/4 "2003-01-05T03:13:47Z")

</div>

ups, forgot something…

in the .php file, modify  
**else echo ‘sent=no’;** to  
**else echo ‘sent=“no”’;**

i’m going to update the .zip file, so download the file i’ve attached along this post 🙂
