A Little Help With Flash Form & Php!

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

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

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

thanks <:}

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 :slight_smile:

the new form.php looks like this:


<?
   $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’…

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 :slight_smile: