Hello,
I have links that are appended with a catid.
For example, the first link is this
http://caillouette.com/chapter25c/show_cat.php?catid=1
In the show cat php I have a do_html_header code which is in an included file.
Inside the do_html_header function I have the following:
first I get the catid
$catid = $HTTP_GET_VARS['catid'];
then I output some html, then I embed the flash movie according to the $catid, which follows:
<? if ($catid==1)
{
?>
<embed src="ToddWhite.swf" quality="high" bgcolor="#ffffff" width="425" height="51" name="ToddWhite" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></embed>
<?;
}
else
{
?>
<EMBED src="onlinemuseum.swf" quality=high bgcolor=#FFFFFF WIDTH="425" HEIGHT="51" NAME="baron" ALIGN=""
TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED>
<?;
}
?>
But it doesn't work. It keeps presenting the onlinemuseum.swf.
I did an echo $catid; and it didn't print anything.
what am I missing here? Do I need a session?
thanks