Hi, I’ve got a form in flash that sends the information filled in the textboxes to a php which then sends out emails to the respective address’ that have been filled in, the problem is that if the email is already in the database it does nothing, which is making testing it difficult as I keep having to use new emails. I’ve added this string to the php-
}
else
{
echo("<fail>This user has already been referred for this game</fail>");
}
}
But don’t know how to reference it from my flash so the message comes up, at the moment my flash button has this actionscript on it-
on (release) {
if (!email.length || email.indexOf("@") == -1 || email.indexOf(".") == -1) {
EmailStatus = “Please enter a valid E-mail address”;
} else if (!referrer.length || referrer.indexOf("@") == -1 || referrer.indexOf(".") == -1) {
EmailStatus = “Please enter a valid E-mail address”;
} else if (!Name.length) {
EmailStatus = “Please Enter their name to complete the referral”;
} else if (!MyName.length) {
EmailStatus = “Please enter your name to complete the referral”;
} else if (!gameid == 4) {
} else {
loadVariablesNum(“http://www.winability.co.uk/winability/refer/makereferral.php”, “0”, “POST”);
EmailStatus = “Thank you for referring your friend. We have sent them this email”;
}
}
Does anyone have any idea how to make this work, I’ve got a deadline to get it fixed and I seem to be going in circles at the moment? Any help or suggestions would really be appreciated.
Tom