History: I am taking over an ecard site. The owner of the site wants an eq/vis to appear next to the cards.
Problem: I know I am doing something wrong because when I preview the cards the box for the eq appears but it is blank(white). I figure that I am running into problems passing the variable from the previous page or I am doing the flash coding wrong. But I am not sure which it is and I have spent a week trying different things to make it work; obviously with no success. I have included the related code with this post (I have only included code that I think is relative to the issue; if you to need the whole files I can send them to you.) Security is not a big issue for me right now so don't worry.
***sendcard page)***
<?php
session_start();
$username=$username;
$password=$password;
session_destroy();
session_start();
session_register('password');
session_register('username');
$card=$HTTP_GET_VARS["card"];
session_register("card");
?>
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
<title>HipHopG - Send a card</title>
<script language="javascript" src="../inc/newmenu/script.js"></script>
<table width="75%" border="0">
<tr>
<td valign="top"><?php
include("../inc/newmenu/left.php");
?></td>
<td><?php
include("../inc/newmenu/top.php");
?>
<form action="preview.php?card=<?php echo $card; ?>" method="POST">
<table border="0" cellpadding="0" cellspacing="20" width="470">
<tr>
<td valign="top">
<div align="center">
<!-- URL's used in the movie--><!-- text used in the movie--><!--LOADING E-GREETING -->
<object classid="clsid😃27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="235" height="325">
<param name="movie" value="<?php echo $card; ?>">
<param name="quality" value="high">
<param name="bgcolor" value="#000000">
<embed src="<?php echo $card; ?>" quality="high" bgcolor="#000000" width="235" height="325" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">
</object></div>
</td>
<td valign="left">
<font size="2" color="#FFFFFF">Choose the card layout:</font><br>
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="center">
<input type="radio" value="top" name="position">
<img src="../images/card_top.gif">
<br>
</td>
</tr>
</table>
<p>
<font size="2" color="#FFFFFF">Choose an eq:</font><br>
<select name="eq" size="1">
<option value="../eq/aeq.swf" selected>Aeq</option>
<option value="../eq/fire.swf" selected>Fire</option>
<option value="../eq/rhole.swf" selected>Hole</option>
</select>
</p></td>
</tr>
</table>
<center>
<br>
<font size="2" color="#FFFFFF">Your Message:</font><br>
<textarea name="body" cols="40" rows="4"></textarea><br>
<br>
<input type="submit" name="submit" value="Preview Greeting"><br> </center>
<br>
</form>
***********preview.php**************
<?php
session_start();
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>HipHopG - Card Preview</title>
<STYLE TYPE="text/css">
<!--
A {text-decoration:none}
-->
</STYLE>
</head>
<center>
<?php
if(ereg("([[:alnum:].-]+)(@[[:alnum:].-]+.+)", $uemail)) {
if(ereg("([[:alnum:].-]+)(@[[:alnum:].-]+.+)", $remail)) {
if($uname != "") {
if($rname != "") {
session_register("uemail");
session_register("remail");
session_register("uname");
session_register("rname");
session_register("position");
session_register("bgcolor");
session_register("textcolor");
session_register("size");
session_register("font");
session_register("body");
session_register("joint");
session_register("bcc");
$card=$HTTP_GET_VARS["card"];
session_register("card");
session_register("eq");
if($position == "") { include("inc/top.inc"); $blah="inc/top.inc"; }
************top.inc************************
<object classid="clsid😃27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4,0,2,0" width="50" height="38">
<param name="movie" value="<?php echo $eq; ?>">
<param name="quality" value="high">
<param name="play" value="true">
<embed src="<?php echo $eq; ?>" type="application/x-shockwave-flash" width="50" height="38" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" quality="high" play="true">
</object>