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 2 of 2
  1. #1
    Join Date
    May 2006
    Location
    Hull
    Posts
    7,701
    Tokens
    2,430
    Habbo
    Moh

    Latest Awards:

    Default How do tags work?

    How exactly do you use tags?

    So if you was on a page tags?tag=lol how would it select all the other entries with the exact same tag as "lol".
    So for the entries, the tags could be:

    lol, funny, fail, kewl

    funny, strange, lol

    rofl, lol, pmsl

    I know you use arrays, but to get the tag results, you have to use:
    $array[0]
    $array[1]
    $array[2]
    $array[3]
    etc..

  2. #2

    Default

    Do you mean, for example, loading a group of check-box's into an array?
    Form:
    Code:
    <form action='submit.php' method='post'>
    <input type='checkbox' value='1' name='lol[]'> (Notice the [] in the name)
    <input type='checkbox' value='2' name='lol[]'> 
    <input type='checkbox' value='3' name='lol[]'> 
    </form>
    PHP:
    Code:
    <?php
    $movezig=$_POST['lol'];
    
    //$movezig is now an array containing the values of the check-box's that are checked
    
    ?>

Posting Permissions

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