Hi all,
Just wondering if anyone can help me with the following issue:
I have a contact form in .flash and I'm using PHP to make it live;
I have created my form.php file:Code:on(release) { if (your name eq "" or your email eq "" or message eq "") { stop(); } else { loadVariablesNum("form.php", 0, "POST"); gotoAndStop(2); } }
And I'm now calling this function through the following ActionScript:PHP Code:<?
$destination="[email protected]";
$name=$_POST['name'];
$email=$_POST['email'];
$mes=$_POST['comments'];
$subject="Message from $name" ;
$mes="Name : $name\n
Email: $email\n
Comments: $mes\n";
mail($destination,$subject,$mes); ?>
However the button doesn't appear to be active. I have checked my variables, server has PHP and I'm left wondering what else! Could anyone provide assistance.Code:on(rollOver) { this.gotoAndPlay("s1"); } on(rollOut, releaseOutside) { this.gotoAndPlay(_totalframes - _currentframe); } on(release) { if (your name eq "" or your email eq "" or message eq "") { stop(); } else { loadVariablesNum("form.php", 0, "POST"); gotoAndStop(2); } }
Much appreciated.
Olly




Reply With Quote