Hi there,
I’ve done a website in flash for the first time and have done a contact form on it.
Only way I could find to do this was calling PHP and using the mail function.
It’s not working. Here’s the Actionscript on my flash button:
[CODE]on(release)
{
if(contactName == “” || contactName.length == 0)
{
contentFormResult.text = “Please Enter Your Name”;
stop();
}
else if((contactEmail == “” || contactEmail.length == 0) &&
(contactTelephone == “” || contactTelephone.length == 0))
{
contentFormResult.text = “Please Enter Your Email and/or Telephone”;
stop();
}
else
{
contentFormResult.text = “Thank you, your details have been submitted”;
loadVariablesNum (“form.php”, 0, “POST”);
gotoAndStop (627);
}
}
And here’s the code for form.php:
[CODE]<?
$to = “michaelATmnetuk.org”;
$subject = “Contact Form Submitted on LBACreative Web Site”;
$msg = “hello”;
mail($to, $subject, $msg);
?>
The php code there is just a test to send a simple email to my domain.
Nothing is coming through at all. Does it look right? The PHP version is 5.2.5 I’m told.
The ‘AT’ in the email above is just me on here avoiding spammers!
Can anyone spot anything please?
Thanks.