I have adopted a flash/php e-card engine from flash-db website. I've gotten it to work, however I want to put 1 more feature. In my flash movie I have a "dynamic text box" that will display the words, "your e-card has been sent". I changed it to instead show a link to the e-card the person just sent.
this is the string that will display it
print "_root.holder.Status= \nClick the following link to view your card:\n\n http://www.mywebsite-example.net/SelectCard.php?EcardText=$CreateEcard&ENum=$EcardNum\n\n-----------------------------------\n";
The result is this:
http://www.mywebsite-example.net/SelectCard.php?EcardText=1266879919
it "SHOULD" look like this...
http://www.mywebsite-example.net/SelectCard.php?EcardText=1266879919&ENum=20
as you can see, the Enum=20 does not appear... I don't know why. Below is a copy of my complete PHP file. I'd be grateful if anyone could revise it for me.
<?
$CreateEcard = date(U);
$filename = $CreateEcard.".txt";
$ToEmail = $_POST["ToEmail"];
$FromEmail = $_POST["FromEmail"];
$ToName = $_POST["ToName"];
$FromName = $_POST["FromName"];
$Greeting = $_POST["Greeting"];
$IntroMessage = $_POST["IntroMessage"];
$EndMessage = $_POST["EndMessage"];
$EcardSelect = $_POST["selected"];
$Today = (date ("l dS of F Y ( h:i:s A )",time()));
$Created = "Ecard Created on $Today";
$EcardNum = $_POST['EcardSelect'];
$EcardText = "ToName={$HTTP_POST_VARS['ToName']}&ToEmail={$HTTP_POST_VARS['ToEmail']}&FromName={$HTTP_POST_VARS['FromName']}&FromEmail={$HTTP_POST_VARS['FromEmail']}&Greeting={$HTTP_POST_VARS['Greeting']}&IntroMessage={$HTTP_POST_VARS['IntroMessage']}&Created={$HTTP_POST_VARS['Created']}&";
$fp = fopen( "./dBText/$filename","w");
fwrite($fp, $EcardText, 10000);
fclose( $fp );
######Email Card########
## You can change the subject and the message part around.
## Make sure to change the Link as stated in the Tutorial.
## (Change from 'someSite' to your actual site - leave the rest the same
$ToSubject = "E-card from $FromName";
$Message = "$ToName,\nYou have recieved a Flash E-card from $FromName. \nClick the following link to view your card:\n\n http://www.mywebsite-example.net/SelectCard.php?EcardText=$CreateEcard&ENum=$EcardNum\n\n-----------------------------------\nHere is the message that was sent:\n$ToName,\n$Greeting\n$IntroMessage\n\n-$FromName\n\n\n-----------------------------------\nThis card was sent by Bunny and Panda\n\nMaking you smile a little more each time.";
mail($ToName." <".$ToEmail.">",$ToSubject, $Message, "From: ".$FromName." <".$FromEmail.">");
## This next line returns a success message to the movie.
print "_root.holder.Status=\n Cfopy the following link to view your card:\n http://www.mywebsite-example.net/SelectCard.php?EcardText=$CreateEcard&ENum=$EcardNum\n\n-----------------------------------";
?>