Hey everyone,
Thanks to the forums here and Senocular’s tutorial I finally have a working flash and php mail form (and I mean finally, took me awhile)! Yay!
I have a couple of formatting questions though if anyone has some free time to answer. I’m sure they’re pretty straightforward, but I don’t know how to fix them.
Firstly, how do I format the background and stroke colours of input textboxes (that’s potenially a very silly question!)
Also, how do I reference variable names? For example my clear button (www.japanese-acupuncture.com.au) currently doesn’t work because I don’t know how to tell it to set the variables to “”. I tried adding instance names because I know how to reference it that way, but they did something funny to the fields and populated them.
This would be my actionscript on the clear button if it had instance names:
on (release)
{
name.text = ‘’
email.text = ‘’
message.text = ‘’
}
And is there a way to block the send button if someone has not filled out all the fields?
Finally, when the email sends it doesn’t pick up the text in the Name field, it uses the first section of the email address.
The php I’m using is here:
<?php
$sendTo = "japaneseacupuncture181@gmail.com";
$subject = “Enquiry from japanese-acupuncture.com.au”;
$headers = “From: " . $_POST[“firstName”] .” “. $_POST[“lastname”] . “<” . $_POST[“email”] .”>
";
$headers .= "Reply-To: " . $_POST[“email”] . "
";
$headers .= "Return-path: " . $_POST[“email”];
$message = $_POST[“message”];
mail($sendTo, $subject, $message, $headers);
?>
If anyone could shed some light on my problems I’d really appreciate it!
Thanks very much in advance,
David