Discover Habbo's history
Treat yourself with a Secret Santa gift.... of a random Wiki page for you to start exploring Habbo's history!
Happy holidays!
Celebrate with us at Habbox on the hotel, on our Forum and right here!
Join Habbox!
One of us! One of us! Click here to see the roles you could take as part of the Habbox community!


Results 1 to 3 of 3
  1. #1
    Join Date
    Feb 2009
    Posts
    166
    Tokens
    0

    Default Php code problem

    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 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
    The sky is the limit, but you can touch the moon if you try.

    Zimbu Gaming || The way games should be played!

  2. #2
    Join Date
    Oct 2006
    Location
    Peterborough, UK
    Posts
    3,855
    Tokens
    216

    Latest Awards:

    Default

    Not a php problem, your paths are wrong or the html is wrong, I don't **** about with embed/object, it's probably html.


    visit my internet web site on the internet
    http://dong.engineer/
    it is just videos by bill wurtz videos you have been warned

  3. #3
    Join Date
    Feb 2009
    Posts
    166
    Tokens
    0

    Default

    yeah i found the problem. thanks anyways
    The sky is the limit, but you can touch the moon if you try.

    Zimbu Gaming || The way games should be played!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •