PatrickMS
26-08-2009, 07:22 PM
I am trying to create a games site and rather than having 500 or so pages i want to use php. Using php get it will show: /game.php?gameid=001 (the games are titled 001.swf, 002.swf etc...) so this in theory (but it doesn't work) should place what game i want to load in the html code with the .swf extension behind the number which has been inputed (is that a word? *lul*). but when everything runs i just get a white box (obviously the code has not worked). Any ideas? here is the code:
<?php
$gameid = $_GET['gameid'];
?>
<object width="500" height="300">
<param name="movie" value="games/<?php echo $gameid; ?>.swf">
<embed src="games/<?php echo $gameid; ?>.swf" width="480" height="300">
</embed>
</object>
Many thanks guys,
Patrick
<?php
$gameid = $_GET['gameid'];
?>
<object width="500" height="300">
<param name="movie" value="games/<?php echo $gameid; ?>.swf">
<embed src="games/<?php echo $gameid; ?>.swf" width="480" height="300">
</embed>
</object>
Many thanks guys,
Patrick