if (isset($pcode)) { $pcode=$HTTP_GET_VARS[pcode]; } else {$pcode=1;}
Is there something wrong with the above code?
I did a <title><?php echo $pcode; ?></title> and it always seems to output 460, and I have no idea why, nowhere in my code does pcode = 460 nor in the url.
then I do this with the pcode:
$swf1 = "<param name='movie' value='contest.swf'>";
$swf2 = "<param name='movie' value='pcontest.swf'>";
$swf1a= "'contest.swf'";
$swf2a= "'pcontest.swf'";
<?php if ($pcode==5344) {echo $swf2;} else {echo $swf1;} ?>
<param name="quality" value="high">
<embed src=<?php if ($pcode==5344) {echo $swf2a;} else {echo $swf1a;} ?>
What is wrong with my code, swf2 always seems to be outputed no matter what....
Thx