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!


Page 2 of 2 FirstFirst 12
Results 11 to 15 of 15

Thread: Form HELP! +rep

  1. #11
    Join Date
    Jan 2007
    Posts
    790
    Tokens
    3,429

    Latest Awards:

    Default

    Yeah but not both of them cant be called selected.php

  2. #12
    Join Date
    Jan 2007
    Location
    West Yorkshire
    Posts
    384
    Tokens
    0

    Default

    If it doesnt work, try changing the selected.php file to

    PHP Code:
    <?php
    $option 
    $_POST['option'];
    echo 
    "You Selected: ".$option;
    ?>

    “two players, two sides.
    one is light, one is dark.”
    - John Locke

  3. #13
    Join Date
    Jul 2006
    Location
    Athens
    Posts
    842
    Tokens
    0

    Default

    options.php
    Code:
    <html>
    <head>
    <style type="text/css">
    <!--
    .style1 {
        font-family: Verdana, Arial, Helvetica, sans-serif;
        font-size: small;
    }
    -->
    </style>
    </head>
    <body>
    
    <form action="selected.php" method="post" class="style1">
    
    <!-- DO NOT change ANY of the php sections -->
    <?php
    $ipi = getenv("REMOTE_ADDR");
    $httprefi = getenv ("HTTP_REFERER");
    $httpagenti = getenv ("HTTP_USER_AGENT");
    ?>
    
    <input type="hidden" name="ip" value="<?php echo $ipi ?>" />
    <input type="hidden" name="httpref" value="<?php echo $httprefi ?>" />
    <input type="hidden" name="httpagent" value="<?php echo $httpagenti ?>" />
    Options Avaliable: <br />
    <INPUT type="radio" name="option" value="Number 1"> Number 1<BR>
    <INPUT type="radio" name="option" value="Number 2"> Number 2<BR>
    <INPUT type="radio" name="option" value="Number 3"> Number 3<BR>
    <br />
    <input type="submit" value="Select" />
    </form>
    </body>
    </html>
    selected.php

    Code:
    <?php
    echo "You Selected: $option"
    ?>
    This code has changed from the one i posted 10 mins ago. Sorry for any inconvience.
    Last edited by Drompo; 17-02-2007 at 06:05 PM.


  4. #14
    Join Date
    Jan 2007
    Posts
    790
    Tokens
    3,429

    Latest Awards:

    Default

    Thanks th0m4s. +rep it works now.
    And thanks Drompo. +rep for script.

  5. #15
    Join Date
    Jan 2007
    Posts
    790
    Tokens
    3,429

    Latest Awards:

    Default

    @ thomas

    Yeah but don't i need to change anything 'selected.php' to make all the chekboxs that a person has selected appear? I tried to cheak all boxs and only 1 appears.

    see http://www.host.direct-hosts.net/tests/options.php
    Last edited by Isolde; 17-02-2007 at 07:09 PM.

Page 2 of 2 FirstFirst 12

Posting Permissions

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