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 5 of 5

Thread: Help

  1. #1
    Join Date
    Aug 2006
    Posts
    282
    Tokens
    0

    Default Help

    Hey i use this code;

    PHP Code:
    <?php

    $name 
    $_POST['name'];
    $message $_POST['message'];
    $IP $_SERVER['REMOTE_ADDR'];

    if(empty(
    $name) OR empty($message))
    {
    echo 
    "

    <script language='javascript'>

    alert('You forgot to fill in one or more form fields...');

    </script>
    "
    ;

    }
    else
    {

    $name htmlspecialchars($name);
    $message htmlspecialchars($message);
    $shout = ("<font size=\"1\" face=\"Verdana\">
    <b>
    $name</b>; $message<br><br>");

    $read fopen("textfiles/messages.txt""r");
    $contents fread($readfilesize(textfiles/messages.txt'));
    fclose($read);

    $write = fopen("textfiles/messages.txt", "w");
    fwrite($write, "$tag $contents");
    fclose($write);

    }
    print "<meta http-equiv=\"refresh\" content=\"0;shoutbox.php\">";

    ?>
    Yet i get an error, can someone fix please
    Last edited by Drugs; 10-08-2006 at 02:34 PM.

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

    Latest Awards:

    Default

    Whats the error?

  3. #3
    Join Date
    Aug 2006
    Posts
    282
    Tokens
    0

    Default

    Nevermind fixed.

  4. #4
    Join Date
    Nov 2004
    Location
    HabboWeb FM Offices
    Posts
    3,019
    Tokens
    0

    Latest Awards:

    Default

    Thanks to me :rolleyes:

  5. #5
    Join Date
    Aug 2006
    Posts
    282
    Tokens
    0

    Default

    Yer

Posting Permissions

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