Hi there,
So I have this code,
<?
switch ($ENum) {
case '1':
$goto = "Ecard1.swf?EcardText=".$EcardText;
$gotoFooter = "EcardFooter.swf?EcardText=".$EcardText."&EcardSelect=1";
$Dimensions = "WIDTH=700 HEIGHT=525";
$DimensionsFooter = "WIDTH=700 HEIGHT=250";
break;
case '2':
$goto = "Ecard2.swf?EcardText=".$EcardText;
$gotoFooter = "EcardFooter.swf?EcardText=".$EcardText."&EcardSelect=2";
$Dimensions = "WIDTH=700 HEIGHT=525";
$DimensionsFooter = "WIDTH=700 HEIGHT=250";
break;
case '3':
$goto = "Ecard3.swf?EcardText=".$EcardText;
$gotoFooter = "EcardFooter.swf?EcardText=".$EcardText."&EcardSelect=3";
$Dimensions = "WIDTH=700 HEIGHT=525";
$DimensionsFooter = "WIDTH=700 HEIGHT=250";
break;
case '4':
$goto = "Ecard4.swf?EcardText=".$EcardText;
$gotoFooter = "EcardFooter.swf?EcardText=".$EcardText."&EcardSelect=4";
$Dimensions = "WIDTH=700 HEIGHT=525";
$DimensionsFooter = "WIDTH=700 HEIGHT=250";
break;
case '5':
$goto = "Ecard5.swf?EcardText=".$EcardText;
$gotoFooter = "EcardFooter.swf?EcardText=".$EcardText."&EcardSelect=5";
$Dimensions = "WIDTH=700 HEIGHT=525";
$DimensionsFooter = "WIDTH=700 HEIGHT=250";
break;
}
?>
</head>
<body bgcolor="#FFFFFF" topmargin="0" leftmargin="0" rightmargin="0" marginheight="0" marginwidth="0">
<center>
<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0"
<? print "$Dimensions";?>>
<PARAM NAME=movie VALUE="<? print "$goto";?>"> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#FFFFFF> <EMBED src="<? print "$goto";?>" quality=high bgcolor=#FFFFFF <? print "$Dimensions";?> TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></EMBED>
</OBJECT>
<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0"
<? print "$DimensionsFooter";?>>
<PARAM NAME=movie VALUE="<? print "$gotoFooter";?>"> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#FFFFFF> <EMBED src="<? print "$gotoFooter";?>" quality=high bgcolor=#FFFFFF <? print "$DimensionsFooter";?> TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></EMBED>
</OBJECT>
</center>
</BODY>
</HTML>
which came with an flash/php Ecards tutorial.
Now, as far as I'm aware, this is pre-4.1 release code. I'm running 4.3.x on my local install (with the register_globals set to 'on'), but it still won't fly.
I thought that maybe a kind person might help me by demonstrating the correct way to declare variables in a later-than-4.1 release way, 'cause I've tried to add stuff like this under the $ENum line:
$goto = $_POST["goto"];
to try and get it going, but where the original script won't parse the names of the swf files, there is at least something (the <object> tags, etc) within the <body> tags. With my weak attempt to declare variables, not only are the swf names being left out, the <body> tags are completely empty, I guess showing a complete breakdown of the script.
Please, any help is greatly appreciated.
Cheers