Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.