I am using the free e-card script from Flash-db.com and have modified the .swf file (that makes up the card) so that a user can choose a midi file from a drop down list and the data is written to the same external db file that holds the user’s name, email, message, etc
I need to be able to retrieve the midi file information, which is a URL, and load it into the php script which dynamically generates the card-view page and not back into the flash movie, since midis won’t work with Flash.
So far, I either get nothing or the wrong variables - I am certain, since the info is right there in the data file with all the other data that is loading correctly, that there must be some simple way to do this but I apparently I am either too dumb or tired to figure out what it is.
This is what the data file that holds the user’s info looks like ($Music is usual placeholder for the URL of the midi):
ToName=user&ToEmail=user@user.com&FromName=user&FromEmail=user@user.com&Greeting=test&IntroMessage=test&Created=Ecard Created on Friday 15th of August 2003 ( 01:56:39 PM )&Music=http://www.cardsbyali.com/ac/Clouds.mid
I have attached the code I have been trying to use to load the midi URL to the PHP script to this post (phpmiditagattachment.txt) because when I used the code tags nothing showed up
This is an example of the tags the PHP script uses to call for the data and generate a page for viewing the card (.swf) file:
<?
switch ($ENum) {
case '1':
$goto = "Ecard1.swf?EcardText=".$EcardText;
$gotoFooter = "EcardFooter.swf?EcardText=".$EcardText."&EcardSelect=1";
$Dimensions = "WIDTH=550 HEIGHT=450";
$DimensionsFooter = "WIDTH=550 HEIGHT=250";
break;
}
?>
The body of the page has tags to embed the swf file using PHP (example)
<? print "$Dimensions";?>>
Nothing I’ve tried works and I’ve searched the forums, read the PHP tutorials and have run out of ideas. This board has helped me a lot in the past, so I’ll keep my fingers crossed someone can help explain what I am doing wrong
Thanks in advance
ali