[HTML & PHP] Register & login help. menu

User Tag List

Results 1 to 6 of 6
  1. #1
    Ascelyn's Avatar Member
    Reputation
    22
    Join Date
    Jul 2009
    Posts
    129
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [HTML & PHP] Register & login help.

    So.. I've found a way to get a login & register site and stuff.

    but I seem to have some probs :/

    This is my website. Website
    Its all about testing stuff so not going to be a very public site.

    If you click register it.. well.. it shows alot of weird stuff that shouldn't be there and it is missing a button to submit.

    Here are the codes.
    (NOTE! I used [URL http://www.daniweb.com/forums/thread97183.html#] this link[/URL] apologize for it to be another website than MMOwned.(No offense) and the explanation from the guy "Macneato")

    Login.php
    HTML | <html> <head> </hea - Login.php - qtQEMpeP - Pastebin.com
    Register.php
    HTML | <html> <head> <body - Register.php - XcJU9Xmk - Pastebin.com
    Logout.php(small code so not in pastebin)
    HTML Code:
       <html>
       <body>
          <?php
       
          session_start();
       
          session_unset();
       
           
       
          session_destroy();
      
       
          Header("Location: index.php");
      
          ?>
    	  </html>
    	  </body>
    Logout.php
    HTML Code:
      
          <?php
       
          session_start();
       
           
       
          if (!$_SESSION["valid_user"])
       
          {
       
      
       
          Header("Location: login.php");
       
          }
       
     
          echo "<p>User ID: " . $_SESSION["valid_id"];
     
          echo "<p>Username: " . $_SESSION["valid_user"];
      
          echo "<p>Logged in: " . date("m/d/Y", $_SESSION["valid_time"]);
     
           
          echo "<p><a href=\"logout.php\">Click here to logout!</a></p>";
      
          ?>
    dbConfig.php

    HTML | <? $host = "localhost"; $ - DbConfig.php - NLaRHUyM - Pastebin.com

    If you know what to do or what's wrong with these scripts. Or know how to make it work. or a script with a step-by-step guide to create a login page.

    Please post it here. Or if it is too much to ask. You can always add me on MSN: [email protected]

    -Thanks in advance!

    [HTML &amp; PHP] Register &amp; login help.
  2. #2
    Dombo's Avatar Banned
    Reputation
    622
    Join Date
    Nov 2008
    Posts
    1,421
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    When ouputting code in PHP, you have to use ' between "

    Example: echo "<span class='hello'>Hello world!</span>";

    EDIT: http://pastebin.com/Rfnnr4jf

    This should fix it, if not you can add me on MSN: [email protected].
    Last edited by Dombo; 03-21-2010 at 10:46 AM.

  3. #3
    ReidE96's Avatar Archer Authenticator enabled
    Reputation
    470
    Join Date
    Dec 2006
    Posts
    1,625
    Thanks G/R
    1/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

  4. #4
    Danne206's Avatar Contributor
    Reputation
    183
    Join Date
    Jan 2008
    Posts
    717
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Just one thing, if you're looking for a working login system, I believe that vBulletin (and such) might be fitting you, becouse if you're trying to learn PHP - this is the wrong way to go. You're not learning anything when you're copy-pasting code, start from the ground and then go to more advanced things. When you've done that - build your own things, way funnier - trust me.

    No offense is ment, hope none is taken either.
    If it's still not working and you're just looking for a working login & register script, reply .
    Dahnniel [DOT] s [AT] gmail [DOT] com

  5. #5
    Ascelyn's Avatar Member
    Reputation
    22
    Join Date
    Jul 2009
    Posts
    129
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    None taken And yes I am looking for one + explanation aswell

  6. #6
    extramaster's Avatar Private
    Reputation
    1
    Join Date
    Apr 2010
    Posts
    2
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Let me ask you a simple question... Do you have mysql for your login database ??? Does your hoster even provide one ??? Because you need a database to store all the info.... If you do then rewrite your dbConfig.php with the proper password and details because according to my guesswork, "root" probably isn't the username because well, you don't really own the website (no offense).... Someone else is just hosting it for you But if you really have the proper info for mysql login then i spotted a small mistake with your DBCONFIG.PHP code... for the start of the code when it has "<?" you've got to change it to "<?php" (without quote marks) and also, you've obiously haven't setup the tables (if the password is correct)... If I'm confusing you then sorry...

Similar Threads

  1. [HTML][PHP] Table width, newssystem - Help needed!
    By Harambeqt in forum Programming
    Replies: 9
    Last Post: 06-05-2012, 10:30 AM
  2. [PHP]Register & Login page <SIMPLE>
    By Danne206 in forum Programming
    Replies: 2
    Last Post: 04-01-2010, 07:38 AM
  3. When login....help..
    By twinkleken in forum WoW EMU Questions & Requests
    Replies: 5
    Last Post: 12-15-2008, 10:27 PM
  4. Cant login help please.
    By dragonowner in forum WoW EMU Questions & Requests
    Replies: 6
    Last Post: 08-28-2008, 12:11 PM
  5. WoW login help or something
    By asdsad in forum World of Warcraft General
    Replies: 2
    Last Post: 08-28-2007, 12:27 PM
All times are GMT -5. The time now is 03:57 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search