Jump to content

Ecard


focus

Recommended Posts

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>

 

Link to comment
https://forums.phpfreaks.com/topic/78044-ecard/
Share on other sites

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>

Link to comment
https://forums.phpfreaks.com/topic/78044-ecard/#findComment-395155
Share on other sites

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)  :P:

 

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.

Link to comment
https://forums.phpfreaks.com/topic/78044-ecard/#findComment-395641
Share on other sites

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.

Link to comment
https://forums.phpfreaks.com/topic/78044-ecard/#findComment-395643
Share on other sites

  • 2 weeks later...

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>

Link to comment
https://forums.phpfreaks.com/topic/78044-ecard/#findComment-405756
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.