View Full Version : Flash PHP Problem with sending Email
stacy925
10-26-2005, 11:11 AM
Hi - I have used global variables in flash with names - question1, question2 etc. I have sent these off with a LoadvariablesNum to email.php but although I get an email sent it has nothing in the body - Could anyone take a look at this php script (which i presume is the problem??Could it be a flash problem when it is sending the mail??) and let me know what it should say to get question1 - 5 variables to list themselves in the body
Many thanks
Stacy
<?php
$sendTo ="info@stay-see.com";
$subject = "Westenders Game Response";
// Recieving the variables.
$message = $_POST["question1"];
//Performing Mail script...
mail($sendTo, $subject, $message);
?>
stacy925
10-26-2005, 02:28 PM
Hi - Me again with this query - I have found that it is not the PHP file as this works with other flash files - the problem is I think in how I am packaging up my global variables - I have a button that has the following action on this
on (release) {
loadVariablesNum("email.php", "POST");
}
this is to send 6 global variables to the email.php - but it does not seem to do that - Am I missing something - this is the first time I have used Global Variables?
Any help appreciated!
stacy925
10-26-2005, 02:48 PM
Hi - I have a button that has the following action on it
on (release) {
loadVariablesNum("email.php", "POST");
}
this is to send six global variables to email.php - however it is not sending these variables (using echo) is there something I am missing - i have not used Global Variables before!
Any help appreciated
stacy925
10-26-2005, 03:00 PM
Hi - I found the answer - I delcared the global variables inside a movie clip then used
movieclipinstancename.loadVariables ("email.php",POST)
seems like this is the way it has to be done
Abelius
10-26-2005, 03:42 PM
Personally I don't know PHP (ASP-er here) but did you use _global with the underscore before the actual word in Flash? I always prefered _global to _root myself as well...
CyanBlue
10-26-2005, 04:19 PM
Please keep your question to one thread... Thank you... :)
|
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.