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 3 FirstFirst 123 LastLast
Results 11 to 20 of 24
  1. #11
    Join Date
    Feb 2009
    Posts
    131
    Tokens
    0

    Default

    Sounds like you're on a bad host, hearing all of the problems that you've had with PHP.

  2. #12
    Join Date
    Dec 2006
    Location
    Swindon
    Posts
    3,299
    Tokens
    215
    Habbo
    dunko

    Latest Awards:

    Default

    Quote Originally Posted by Calgon View Post
    Sounds like you're on a bad host, hearing all of the problems that you've had with PHP.
    Or he just can't code PHP...

  3. #13
    Join Date
    Oct 2007
    Posts
    824
    Tokens
    71

    Latest Awards:

    Default

    Quote Originally Posted by Ible View Post
    PHP Code:
     <?php
    if($_POST) {
     echo 
    "hi $_POST['name']";
    } else {
    echo 
    '
     <form method="post" enctype="text/plain">
     Name: <input type="text" name="name"> <br />
     <input type="submit" value="Submit" name="submit">
     </form>
    '
    ;
    ?>
    oh yer that ! was a typo. that still doesn't work.

    @blob: if you're so good why don't you help me by telling me what I did wrong instead of insulting me?
    Vouches
    [x][x]

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

    Latest Awards:

    Default

    Quote Originally Posted by Fazon View Post
    oh yer that ! was a typo. that still doesn't work.

    @blob: if you're so good why don't you help me by telling me what I did wrong instead of insulting me?
    He wasn't insulting you, he was just making a point.

    Also use this instead of !$_POST:
    PHP Code:
    empty( $_POST'name' ] ) === false 
    also get rid of that enctype there is no need for it


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

  5. #15
    Join Date
    Mar 2009
    Posts
    6
    Tokens
    0

    Default

    PHP Code:
     <?php
    if(isset($_POST['name'])){
     echo(
    "hi ".$_POST['name']."");
    } else {
    echo (
    "
     <form method=\"post\" enctype=\"text/plain\" action=\"
    $_SERVER['PHP_SELF']\">
     Name: <input type=\"text\" name=\"name\"> <br />
     <input type=\"submit\" value=\"Submit\" name=\"submit\">
     </form>
    "
    );
    ?>
    Try that. Does it refresh now. And what do you mean the page refreshes? Like when you load it it refreshes? Or what...?

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

    Latest Awards:

    Default

    Quote Originally Posted by Decoma View Post
    PHP Code:
     <?php
    if(isset($_POST['name'])){
     echo(
    "hi ".$_POST['name']."");
    } else {
    echo (
    "
     <form method=\"post\" enctype=\"text/plain\" action=\"
    $_SERVER['PHP_SELF']\">
     Name: <input type=\"text\" name=\"name\"> <br />
     <input type=\"submit\" value=\"Submit\" name=\"submit\">
     </form>
    "
    );
    ?>
    Try that. Does it refresh now. And what do you mean the page refreshes? Like when you load it it refreshes? Or what...?
    That is useless, horrible code.

    Fine I will do it for you.

    PHP Code:
    <?php
    if( empty( $_POST'name' ] ) === false ) {
        echo 
    'Hi, ' $_POST'name' ];
    } else {
        echo <<<HTML
    <form action="" method="post">
    Name: <input type="text" name="name" /> <br />
    <input type="submit" value="Submit" name="submit" />
    </form>
    HTML;
    }
    ?>


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

  7. #17
    Join Date
    Oct 2007
    Posts
    824
    Tokens
    71

    Latest Awards:

    Default

    I have been trying to figure this out but I can't...

    Why on earth does pressing the Submit button just clear the boxes/refresh the page? Could it be that I messed up the action="" value?
    Vouches
    [x][x]

  8. #18
    Join Date
    May 2005
    Location
    San Francisco, CA
    Posts
    7,160
    Tokens
    2,331

    Latest Awards:

    Default

    Quote Originally Posted by Fazon View Post
    I have been trying to figure this out but I can't...

    Why on earth does pressing the Submit button just clear the boxes/refresh the page? Could it be that I messed up the action="" value?
    You do have method="post" in the <form> tag don't you?

  9. #19
    Join Date
    Oct 2007
    Posts
    824
    Tokens
    71

    Latest Awards:

    Default

    No, I thought you didn't need it if it's on the same page. I've also tried echo '<form action="'.$HTTP_SERVER_VARS['PHP_SELF'].'"; and so on but same problem.
    Vouches
    [x][x]

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

    Latest Awards:

    Default

    Quote Originally Posted by Fazon View Post
    No, I thought you didn't need it if it's on the same page. I've also tried echo '<form action="'.$HTTP_SERVER_VARS['PHP_SELF'].'"; and so on but same problem.
    Quote Originally Posted by Jewish Bear View Post
    That is useless, horrible code.

    Fine I will do it for you.

    PHP Code:
    <?php
    if( empty( $_POST'name' ] ) === false ) {
        echo 
    'Hi, ' $_POST'name' ];
    } else {
        echo <<<HTML
    <form action="" method="post">
    Name: <input type="text" name="name" /> <br />
    <input type="submit" value="Submit" name="submit" />
    </form>
    HTML;
    }
    ?>
    Quote Originally Posted by Jewish Bear View Post
    That is useless, horrible code.

    Fine I will do it for you.

    PHP Code:
    <?php
    if( empty( $_POST'name' ] ) === false ) {
        echo 
    'Hi, ' $_POST'name' ];
    } else {
        echo <<<HTML
    <form action="" method="post">
    Name: <input type="text" name="name" /> <br />
    <input type="submit" value="Submit" name="submit" />
    </form>
    HTML;
    }
    ?>
    Quote Originally Posted by Jewish Bear View Post
    That is useless, horrible code.

    Fine I will do it for you.

    PHP Code:
    <?php
    if( empty( $_POST'name' ] ) === false ) {
        echo 
    'Hi, ' $_POST'name' ];
    } else {
        echo <<<HTML
    <form action="" method="post">
    Name: <input type="text" name="name" /> <br />
    <input type="submit" value="Submit" name="submit" />
    </form>
    HTML;
    }
    ?>
    Quote Originally Posted by Jewish Bear View Post
    That is useless, horrible code.

    Fine I will do it for you.

    PHP Code:
    <?php
    if( empty( $_POST'name' ] ) === false ) {
        echo 
    'Hi, ' $_POST'name' ];
    } else {
        echo <<<HTML
    <form action="" method="post">
    Name: <input type="text" name="name" /> <br />
    <input type="submit" value="Submit" name="submit" />
    </form>
    HTML;
    }
    ?>
    Quote Originally Posted by Jewish Bear View Post
    That is useless, horrible code.

    Fine I will do it for you.

    PHP Code:
    <?php
    if( empty( $_POST'name' ] ) === false ) {
        echo 
    'Hi, ' $_POST'name' ];
    } else {
        echo <<<HTML
    <form action="" method="post">
    Name: <input type="text" name="name" /> <br />
    <input type="submit" value="Submit" name="submit" />
    </form>
    HTML;
    }
    ?>
    Quote Originally Posted by Jewish Bear View Post
    That is useless, horrible code.

    Fine I will do it for you.

    PHP Code:
    <?php
    if( empty( $_POST'name' ] ) === false ) {
        echo 
    'Hi, ' $_POST'name' ];
    } else {
        echo <<<HTML
    <form action="" method="post">
    Name: <input type="text" name="name" /> <br />
    <input type="submit" value="Submit" name="submit" />
    </form>
    HTML;
    }
    ?>
    Quote Originally Posted by Jewish Bear View Post
    That is useless, horrible code.

    Fine I will do it for you.

    PHP Code:
    <?php
    if( empty( $_POST'name' ] ) === false ) {
        echo 
    'Hi, ' $_POST'name' ];
    } else {
        echo <<<HTML
    <form action="" method="post">
    Name: <input type="text" name="name" /> <br />
    <input type="submit" value="Submit" name="submit" />
    </form>
    HTML;
    }
    ?>
    Quote Originally Posted by Jewish Bear View Post
    That is useless, horrible code.

    Fine I will do it for you.

    PHP Code:
    <?php
    if( empty( $_POST'name' ] ) === false ) {
        echo 
    'Hi, ' $_POST'name' ];
    } else {
        echo <<<HTML
    <form action="" method="post">
    Name: <input type="text" name="name" /> <br />
    <input type="submit" value="Submit" name="submit" />
    </form>
    HTML;
    }
    ?>
    Quote Originally Posted by Jewish Bear View Post
    That is useless, horrible code.

    Fine I will do it for you.

    PHP Code:
    <?php
    if( empty( $_POST'name' ] ) === false ) {
        echo 
    'Hi, ' $_POST'name' ];
    } else {
        echo <<<HTML
    <form action="" method="post">
    Name: <input type="text" name="name" /> <br />
    <input type="submit" value="Submit" name="submit" />
    </form>
    HTML;
    }
    ?>
    Quote Originally Posted by Jewish Bear View Post
    That is useless, horrible code.

    Fine I will do it for you.

    PHP Code:
    <?php
    if( empty( $_POST'name' ] ) === false ) {
        echo 
    'Hi, ' $_POST'name' ];
    } else {
        echo <<<HTML
    <form action="" method="post">
    Name: <input type="text" name="name" /> <br />
    <input type="submit" value="Submit" name="submit" />
    </form>
    HTML;
    }
    ?>
    Quote Originally Posted by Jewish Bear View Post
    That is useless, horrible code.

    Fine I will do it for you.

    PHP Code:
    <?php
    if( empty( $_POST'name' ] ) === false ) {
        echo 
    'Hi, ' $_POST'name' ];
    } else {
        echo <<<HTML
    <form action="" method="post">
    Name: <input type="text" name="name" /> <br />
    <input type="submit" value="Submit" name="submit" />
    </form>
    HTML;
    }
    ?>
    internet


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

Page 2 of 3 FirstFirst 123 LastLast

Posting Permissions

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