focus Posted November 20, 2007 Share Posted November 20, 2007 Hey, Im tryin to make a simple ecard though havning alot of trouble with it. I am wondering if there is anything wrong with the PHP code? <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Untitled Document</title> </head> <body> <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="550" height="400"> <param name="movie" value="ecard.swf?yname=<?php echo $yname; ?>&rname=<?php echni $rname; ?> " /> <param name="quality" value="high" /> <embed src="ecard.swf?yname=<?php echo $yname; ?>&rname=<?php echo $rname; ?> " quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="550" height="400"></embed> </object> </body> </html> Quote Link to comment https://forums.phpfreaks.com/topic/78044-ecard/ Share on other sites More sharing options...
MadTechie Posted November 20, 2007 Share Posted November 20, 2007 A few things, i fixed them except 2 which need to be set.. <?php //$rname=""; <---You need to set this //$yname=""; <---You need to set this ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Untitled Document</title> </head> <body> <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="550" height="400"> <param name="movie" value="ecard.swf?yname=<?php echo $yname; ?>&rname=<?php echo $rname; ?> " /> <param name="quality" value="high" /> <embed src="ecard.swf?yname=<?php echo $yname; ?>&rname=<?php echo $rname; ?> " quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="550" height="400"></embed> </object> </body> </html> Quote Link to comment https://forums.phpfreaks.com/topic/78044-ecard/#findComment-395155 Share on other sites More sharing options...
focus Posted November 21, 2007 Author Share Posted November 21, 2007 what do you mean by set this? I set it in the flash animation right? or the PHP code? ??? The flash files can be found in the URL bellow (excuse the stupid url) : http://www.geocities.com/nugget_69_69_69/ecard2.fla <-- Where the user enters yname and rname http://www.geocities.com/nugget_69_69_69/ecard.fla <-- File that loads after with the yname and rname variables. Quote Link to comment https://forums.phpfreaks.com/topic/78044-ecard/#findComment-395641 Share on other sites More sharing options...
wsantos Posted November 21, 2007 Share Posted November 21, 2007 What he meant was when you post the form where yname and rname to the recieving scirpt you must capture it. $rname = $_POST['the name of the text box']; $yname = $_POST['the name of the text box']; I only assumed that it was a textbox...didn't save or run the file. Quote Link to comment https://forums.phpfreaks.com/topic/78044-ecard/#findComment-395643 Share on other sites More sharing options...
focus Posted November 24, 2007 Author Share Posted November 24, 2007 rname and yname is the name of the text box. So its basically... $rname = $_POST['rname'] ? Quote Link to comment https://forums.phpfreaks.com/topic/78044-ecard/#findComment-397968 Share on other sites More sharing options...
wsantos Posted November 24, 2007 Share Posted November 24, 2007 Yes Quote Link to comment https://forums.phpfreaks.com/topic/78044-ecard/#findComment-398132 Share on other sites More sharing options...
focus Posted December 4, 2007 Author Share Posted December 4, 2007 I think there is still something wrong because it wont load... yname = "Your Name" input box rname = "Recipients Name" input box ecard.swf = Where the users enters both variables and presses View ecard2.swf = Is the animation shown with the dynamic text using the variables from e.card.swf The PHP code is... <body> <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="550" height="400"> <param name="movie" value="ecard.swf?yname=<?php echo $yname; ?>&rname=<?php echni $rname; ?> " /> <param name="quality" value="high" /> <embed src="ecard.swf?yname=<?php echo $yname; ?>&rname=<?php echo $rname; ?> " quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="550" height="400"></embed> </object> </body> </html> Quote Link to comment https://forums.phpfreaks.com/topic/78044-ecard/#findComment-405756 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.