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 13 of 13
  1. #11
    Join Date
    Mar 2008
    Posts
    173
    Tokens
    0

    Default

    Well he should have posted it all

  2. #12
    Join Date
    Jan 2007
    Location
    Canada eh?
    Posts
    766
    Tokens
    75

    Default

    As I've been reading this thread the use of parentheses in the echo construct have been really bugging me. Just so we're all clear, it is a much better practice to NEVER use parentheses while using the echo construct - main reason being that you cannot pass more than one parameter when using parentheses.

    Anyway.... here would be the correct usage in your situation...
    PHP Code:
    // If or else statement should go here
         
    echo '<a href="register.php">Register Here</a>
         </td></tr></table></form></center>'
    ;
    }
    if (
    $_POST['login']) { // Option #1
         
    $username $_POST["username"];
         
    $password md5($_POST["password"]);
         
    // Rest of stuff goes here
    }
    if (isset(
    $_POST['login'])) { // Option #2
         
    $username $_POST["username"];
         
    $password md5($_POST["password"]);
         
    // Rest of stuff goes here
    }
    if (
    $_POST['login'] != null) { // Option #3
         
    $username $_POST["username"];
         
    $password md5($_POST["password"]);
         
    // Rest of stuff goes here

    Hope that helps
    Last edited by QuickScriptz; 14-03-2008 at 02:46 PM.

  3. #13
    Join Date
    Apr 2006
    Location
    Leamington Spa
    Posts
    1,375
    Tokens
    72

    Latest Awards:

    Default

    *shrug*
    I always used
    PHP Code:
    <?php echo("<a href=\"register.php\">Register Here</a>"); ?>
    Always worked for me.
    i've been here for over 8 years and i don't know why

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
  •