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 4 of 4
  1. #1
    Join Date
    Dec 2006
    Posts
    3,970
    Tokens
    0

    Latest Awards:

    Default [Help Pls] PHP Help

    Im a noob at php, and i need to know how to make some data from 1 page link to the next without a submit button; This is what ive got so far;

    Page1.html
    HTML Code:
    <form methord="post" action="page2.html">
    Name: <input type="name" value="" name="name">
    <input type="submit" value="go!">
    </form>
    Page2.html
    HTML Code:
    <head>
    <meta http-equiv="refresh" content="5;page3.html">
    </head>
    <body>
    <form methord="post" action="page3.html">
    <input type="hidden" value="<?=$name?>">
    </form>
    </body>
    Page3.html
    HTML Code:
    <Body>
    Hi <?=$name?>!
    </body>
    +Rep for help,

    Tom

    Moved by Mattps22004 (Forum Moderator) from Website Designing & Development: Please post in the correct forum next time, thanks .
    Last edited by Matt.; 24-09-2007 at 04:13 PM.

  2. #2
    Join Date
    Jun 2005
    Posts
    4,795
    Tokens
    0

    Latest Awards:

    Default

    I don't recommend you use the <?=$name?> its very outdated.

    However if you want to past infomation between pages then I recommend you use sessions.

  3. #3
    Join Date
    Jul 2005
    Location
    North Wales
    Posts
    4,233
    Tokens
    1,544

    Latest Awards:

    Default

    Wouldn't this do the same thing?

    First page;

    HTML Code:
    <form methord="post" action="page2.php">
    Name: <input type="name" value="" name="name">
    <input type="submit" value="go!">
    </form>
    Second page;

    PHP Code:
    <?php
    echo ("welcome $_POST[name]");
    ?>
    Last edited by redtom; 24-09-2007 at 03:12 PM.

  4. #4
    Join Date
    Jul 2007
    Location
    Swindon
    Posts
    990
    Tokens
    125

    Default

    Just store it in cookies then when they sent the form delete the cookie :S

Posting Permissions

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