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
  1. #1
    Join Date
    Sep 2006
    Location
    I dunno where do u live?
    Posts
    81
    Tokens
    0

    Default Registration & Login form - dreamweaver 8

    hi,
    i need help with my site.
    Ive set up all the pages on the list but the registration & login pages,
    ive searched google but dont know how to make it work
    Plz hlp.

    ( posted here cos i dunno if it php or somin )
    NEW SIG COMING SOON!

  2. #2
    Join Date
    Apr 2005
    Location
    North Carolina, USA
    Posts
    4,535
    Tokens
    0

    Latest Awards:

    Default

    Is it just a page with a form on it?

  3. #3
    Join Date
    Sep 2006
    Location
    I dunno where do u live?
    Posts
    81
    Tokens
    0

    Default

    just like a basic sign up form on a white page, ill make it and host it so u c wat it like

    http://www.neropanel.easilydesigned.com/Register.html
    Last edited by Mattie Boy 1; 02-01-2007 at 09:14 PM.
    NEW SIG COMING SOON!

  4. #4
    Join Date
    Dec 2006
    Posts
    1,128
    Tokens
    0

    Latest Awards:

    Default

    Login:

    <?
    // Login & Session example by sde
    // auth.php
    // start session
    session_start();

    // convert username and password from _POST or _SESSION
    if($_POST){
    $_SESSION['username']=$_POST["username"];
    $_SESSION['password']=$_POST["password"];
    }

    // query for a user/pass match
    $result=mysql_query("select * from users
    where username='" . $_SESSION['username'] . "' and password='" . $_SESSION['password'] . "'");

    // retrieve number of rows resulted
    $num=mysql_num_rows($result);

    // print login form and exit if failed.
    if($num < 1){
    echo "<br><br>

    <style type=\"text/css\">
    <!--
    body {
    background-color: #006699;
    }
    -->
    </style>
    <link href=\"styleuser.css\" rel=\"stylesheet\" type=\"text/css\">
    <style type=\"text/css\">
    <!--
    .style1 {color: #FFFFFF}
    -->
    </style>

    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <table width=\"541\" border=\"1\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\" bordercolor=\"#000000\">
    <tr>
    <td bgcolor=\"#07485E\"><table width=\"541\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
    <tr>
    <td><img src=\"images/loginlogo.jpg\" width=\"86\" height=\"38\"></td>
    </tr>
    <tr>
    <td><form action=\"index.php\" method=\"post\">
    <br>
    <table width=\"301\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\">
    <tr>
    <td width=\"111\" class=\"unnamed1 style1\">Username:</td>
    <td width=\"277\" height=\"23\"><input name=\"username\" type=\"text\" class=\"unnamed1\" size=\"20\"></td>
    </tr>
    <tr>
    <td class=\"unnamed1 style1\">Password:</td>
    <td height=\"23\"><input name=\"password\" type=\"password\" class=\"unnamed1\" size=\"20\"></td>
    </tr>
    <tr>
    <td>&nbsp;</td>
    <td height=\"23\"><input name=\"submit\" type=submit class=\"unnamed1\"></td>
    </tr>
    </table>
    <br>
    </form></td>
    </tr>
    </table></td>
    </tr>
    </table>
    </body>";

    exit;
    }
    ?>
    its a bit ewww but it works.

  5. #5
    Join Date
    Apr 2005
    Location
    North Carolina, USA
    Posts
    4,535
    Tokens
    0

    Latest Awards:

    Default

    www.techtuts.com
    www.pixel2life.com

    Google a simple members system.

    Your going to either neet a PHP or MySQL one.

    You can also buy one for 3-5 pounds from xRoyal15.

    Its very nice

Posting Permissions

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