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 18 of 18
  1. #11
    Join Date
    Feb 2006
    Location
    Ontario Canada
    Posts
    4,587
    Tokens
    0

    Latest Awards:

    Default

    its called learn php and code something yourself.

    .:.:#14:.:. .:.: Impossible Is Nothing :.:. .:.: 845 Rep:.:.
    .:.: Stand up for what is right, even if you stand alone:.:.


  2. #12
    Join Date
    Aug 2006
    Location
    Northamptonshire
    Posts
    250
    Tokens
    0

    Default

    urm thanks but you cant really say that rofl..

  3. #13
    Join Date
    Feb 2006
    Location
    Ontario Canada
    Posts
    4,587
    Tokens
    0

    Latest Awards:

    Default

    even i can fix those errors.

    .:.:#14:.:. .:.: Impossible Is Nothing :.:. .:.: 845 Rep:.:.
    .:.: Stand up for what is right, even if you stand alone:.:.


  4. #14
    Join Date
    Aug 2006
    Location
    Northamptonshire
    Posts
    250
    Tokens
    0

    Default

    Go for it..

  5. #15
    Join Date
    Feb 2006
    Location
    Ontario Canada
    Posts
    4,587
    Tokens
    0

    Latest Awards:

    Default

    whats the code for the page were you enter the codes.

    .:.:#14:.:. .:.: Impossible Is Nothing :.:. .:.: 845 Rep:.:.
    .:.: Stand up for what is right, even if you stand alone:.:.


  6. #16
    Join Date
    Aug 2006
    Location
    Northamptonshire
    Posts
    250
    Tokens
    0

    Default

    PHP Code:
    <?
    include('config.php');

    if (!
    $_POST[submit])
    {
    ?>
    <form name="form1" method="post" action="">
      <p>Please Enter Your Username and Your Forgot Password Code Below<br>
        <br>
        Username: 
        <input type="username" name="textfield">
        <br>
        <br>
        Password Reset Code: 
        <input name="code" type="password" value="">
        <br>
        <br>
        <input type="submit" name="submit" value="Change My Password">
        <br> 
      </p>
      </form>
    <?
    // The form for recovring password
    }else{
    ?>
    <?
      $username 
    $_POST[username];
      
    $passcode $_POST[code];
      
    $queryMYSQL_QUERY("SELECT * from forgotpw WHERE username = '$username' AND code = '$passcode'");
    $exists MySQL_Fetch_Array($query);
      
    if(
    $exists[code] != $passcode) { 
      echo(
    ' The Password Reset Code You Entered, Was Incorrect  ');
      }else{
      
    // checks the code entered was the one in the email
    ?>
      <form name="form2" method="post" action="">
      Please Enter A New Password<br>
      <br>
      New Password: 
      <input name="pass" type="text" id="pass"> 
      <br>
      <br>
      Confirm New Password 
      <input name="pass2" type="text" id="pass2">
      <br>
      <br>
      <input type="submit" name="update value="Change Password">
    </form>
    }
    }
    }
    // The form where the user can enter a new password
    ?>
    <?
    if ($_POST[update])
    {
      
    $password $_POST[pass];
      
    $password2 $_POST[pass2];

    if(
    $password != $password2) {
    echo(
    ' Your New Passwords Do Not Match ');
    }else{

    $password md5($password); 
    $password htmlspecialchars($password);

    $query mysql_query("UPDATE members set password= '$password' WHERE username = '$username' ");
    echo(
    ' Your password has been changed ');

    // Updates the database with the new password
    ?>

    <?
    }
    }
    }

    }
    ?>

  7. #17
    Join Date
    Feb 2006
    Location
    Ontario Canada
    Posts
    4,587
    Tokens
    0

    Latest Awards:

    Default

    i think you got your if and else backwords.
    if($exists[code] != $passcode) so if the code exists your giving them an error message?

    .:.:#14:.:. .:.: Impossible Is Nothing :.:. .:.: 845 Rep:.:.
    .:.: Stand up for what is right, even if you stand alone:.:.


  8. #18
    Join Date
    Aug 2006
    Location
    Northamptonshire
    Posts
    250
    Tokens
    0

    Default

    I dunno? ;s

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
  •