View Full Version : A Little Help With Flash Form & Php!
Kelly Nunes
December 23rd, 2002, 12:01 AM
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
joso
January 1st, 2003, 10:47 AM
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 <:}
c0ldfusion
January 4th, 2003, 11:07 PM
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:
<?
$to = "kellynunes@lvcm.com";
/*
$msg = "$name\n\n";
$msg .= "$message\n\n";
*/
if($name=="" || $email=="" || $subject="" || $msg=="")
{
echo 'error';
exit();
}
if(@mail($to, $subject, $msg, "From: My web site\nReply-To: $email\n"))
echo 'sent=\"ok\"';
else echo 'sent=no';
?>
based on the variable 'sent', flash interprets wether he displays 'email sent' or 'email not sent'...
c0ldfusion
January 4th, 2003, 11:13 PM
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 :)
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.