PDA

View Full Version : Php code problem



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

Agnostic Bear
26-08-2009, 07:35 PM
Not a php problem, your paths are wrong or the html is wrong, I don't **** about with embed/object, it's probably html.

PatrickMS
27-08-2009, 09:19 AM
yeah i found the problem. thanks anyways :D

Want to hide these adverts? Register an account for free!