--------------------------------------------------------------------------------
got a form and PHP backend.
all the variable names are set properly etc and the script runs successfully. I get an email, but the spaces where the variables should be are blank. I have set it up to work with an html form and everything works perfectly.
but for some reason flash isnt passing the variables into the php.
any ideas??
This is the script
<?
$ToEmail = "
me@me.com";
$ToName = "Me";
$ToSubject = "Mail";
$EmailBody = "Sent By: $FirstName\nSenders Email: $Email\n\nMessageSent:\n$ToComments\n\n";
$EmailFooter="\nThis message was sent by: $FirstName from $REMOTE_ADDR If you feel that you recieved this e-mail by accident please contact us at
www.yourSite.com";
$Message = $EmailBody.$EmailFooter;
mail($ToName." <".$ToEmail.">",$ToSubject, $Message, "From: ".$FirstName." <".$Email.">");
Print "_root.contact_form.form_fields.EmailStatus=Complete - Your mail has been sent";
?>
and this is on the button
on (release) {
if (_root.contact_form.form_fields.FirstName eq "") {
EmailStatus = "Please Enter your name";
} else if (!_root.contact_form.form_fields.Email.length || _root.contact_form.form_fields.Email.indexOf("@") == -1 ||_root.contact_form.form_fields.Email.indexOf(".") == -1) {
EmailStatus = "Please enter a valid e-mail address";
} else if (_root.contact_form.form_fields.ToComments eq "") {
EmailStatus = "Please enter a message";
} else {
loadVariablesNum ("fumemail.php", 0, "POST");
EmailStatus = "Sending... one moment please";
}
}
cheers in advance
djangokill