jimw00d
01-29-2003, 08:56 AM
I have a range of problems, I'll need to discuss some with a professional head doctor but my current flash mx problems surround the use of a mail form and php.
1 The method of clearing the selections of check boxes clears the check but not the value assigned by the user selection. One completed mail form retains the check box values of a previous one, even though the checks were removed by what I thought was an all encompassing setValue(false) command.
2 The php code generates an email for my inbox, fine. But I can't get the value of the if statement in php back into flash to let the user know if the mail was sent. I have used:
<html>
<?
$To= "northls@nbkayaking.com";
$ToSubject = "Enquiry";
$UserInfo= $HTTP_USER_AGENT."\n".$HTTP_ACCEPt."\n\n".$REMOTE_ADDR."\n\n".$Date= date("d/F/y\n\nH.i");
$EmailBody = "Sent By: $Name\nSenders Email: $Email\n\nFrom: $From\n\nInterested In: $InterestedIn\n\nMessage Sent:\n$Details\n\n$UserInfo";
$sendMail=mail($Name." <".$To.">",$ToSubject, $EmailBody, "From: ".$Name." <".$Email.">");
if (!$sendMail){
$status="Mail was not Sent";
}
else{
$status="Mail was Sent";
}
echo "&flashstatus=$status";
?>
</html>
"Mail sent" or not is the value I need to assign a dynamix t box in flash.
I have tried using loadVars and GET methods, without luck,
Would I need to get the value through a MC and then get the value of the php generated flash variable through the Mc.
I really have backed myself into a corner on this one.
That's it for now, any help would be cosmic
Regards
1 The method of clearing the selections of check boxes clears the check but not the value assigned by the user selection. One completed mail form retains the check box values of a previous one, even though the checks were removed by what I thought was an all encompassing setValue(false) command.
2 The php code generates an email for my inbox, fine. But I can't get the value of the if statement in php back into flash to let the user know if the mail was sent. I have used:
<html>
<?
$To= "northls@nbkayaking.com";
$ToSubject = "Enquiry";
$UserInfo= $HTTP_USER_AGENT."\n".$HTTP_ACCEPt."\n\n".$REMOTE_ADDR."\n\n".$Date= date("d/F/y\n\nH.i");
$EmailBody = "Sent By: $Name\nSenders Email: $Email\n\nFrom: $From\n\nInterested In: $InterestedIn\n\nMessage Sent:\n$Details\n\n$UserInfo";
$sendMail=mail($Name." <".$To.">",$ToSubject, $EmailBody, "From: ".$Name." <".$Email.">");
if (!$sendMail){
$status="Mail was not Sent";
}
else{
$status="Mail was Sent";
}
echo "&flashstatus=$status";
?>
</html>
"Mail sent" or not is the value I need to assign a dynamix t box in flash.
I have tried using loadVars and GET methods, without luck,
Would I need to get the value through a MC and then get the value of the php generated flash variable through the Mc.
I really have backed myself into a corner on this one.
That's it for now, any help would be cosmic
Regards