Coming Soon - Premium WordPress Theme Giveaway To All Our Email Subscribers

  1. #1 by Praveen Gowda I V on July 29, 2011 - 8:45 am

    Please let me know if you need any customization or improvisation in the script by commenting below
    if you want to request any tutorial contacting me

    VN:F [1.9.22_1171]
    Rating: 5.0/5 (2 votes cast)
    • #2 by shone on September 8, 2012 - 1:00 pm

      Is this login system secured against sql injection attacks ?

      VA:F [1.9.22_1171]
      Rating: 5.0/5 (1 vote cast)
    • #4 by David on December 30, 2012 - 4:28 pm

      Is it possible to add additional fields to this script? I have attempted to do so and tried to update the other files as I thought they should be and I can only successfully mess up the script lol.

      VA:F [1.9.22_1171]
      Rating: 0.0/5 (0 votes cast)
      • #5 by Praveen Gowda I V on December 31, 2012 - 4:18 am

        It is possible but you need to be careful while editing.
        Simple Steps
        1.modify the table to add new fields
        Then you need to edit register.php then go to process.php and edit it so that we pass the additional parameters, then change the session.php and database.php.
        You can download an example file with two more fields here to understand what needs to be changed.

        VN:F [1.9.22_1171]
        Rating: 0.0/5 (0 votes cast)
        • #6 by sukimin on April 18, 2013 - 9:24 pm

          Hello Mr.Developer thanks for the good code… i have some problem here … when i add additional column on table blog_user , registration page no longer works…data inside those column i will insert ONLY thru phpmyadmin not thru interface

          VA:F [1.9.22_1171]
          Rating: 0.0/5 (0 votes cast)
          • #7 by Praveen Gowda I V on April 19, 2013 - 2:22 am

            You have to make corresponding changes in to code as well to make up for the changes in the database table.

            VN:F [1.9.22_1171]
            Rating: 0.0/5 (0 votes cast)
    • #8 by avatarum on January 28, 2013 - 6:16 pm

      how could I modify the script so that it contains 4 users levels? and how could I add an e-mail verification so that users don’t use the same e-mail? sorry about my english. I’m a latin guy

      VA:F [1.9.22_1171]
      Rating: 3.0/5 (1 vote cast)
    • #9 by Randy on April 30, 2013 - 5:33 am

      Hi, I have tried to get this to work without any luck. I’ve uploaded everything to my site/root but nothing shows up. I would like this to allow for member login to one page on my site: http://www.joinucan.com The page I would like to add the login to is; http://www.joinucan.com/Network.html Can You Help!

      VA:F [1.9.22_1171]
      Rating: 0.0/5 (0 votes cast)
  2. #11 by Stewart on August 2, 2011 - 11:08 pm

    This is the best free login script, I have come across.

    Awaiting more such tutorials

    VA:F [1.9.22_1171]
    Rating: 4.0/5 (4 votes cast)
  3. #13 by datadiary on August 4, 2011 - 7:43 pm

    this one is really good login script which ever use till….

    VA:F [1.9.22_1171]
    Rating: 5.0/5 (2 votes cast)
  4. #14 by Johnson on August 4, 2011 - 9:24 pm

    This tutorial is very helpful, I had been searching for this for a very long time

    Thanks a lot.

    VA:F [1.9.22_1171]
    Rating: 4.3/5 (4 votes cast)
  5. #16 by Silas on August 30, 2011 - 10:22 am

    Hello Sir!

    Great tutorial you made on php login script. I am planing to use it to
    create a members area on my guitar-webpage. I have been importing the
    downloaded scripts to a testing domain, and imported the db tables
    successfully!

    However, I want to modify the scripts to fit my web-page, and are facing
    some problems trying to do this.

    For my main.php I want the users to be redirect to their respective user
    area based on user level. I have tried to use the header i.e. (“Location:
    index.php”); to implement this. The only difference for the various user
    levels is the different display of a tree-menu on the left hand side.

    treeMenu-access:
    usrlvl1  only access to a single link
    usrlvl2  access to same link as  usrlvl1, as well as a block of 10-other
    links.
    usrlvl3  access to same link as  usrlvl1 and usrlvl2, as well as a block
    of 10-other links.
    admin  everything, as well as the existing admin control center.

    Something like this(not working), just with two other user levels, in
    addition to the admin:

            if($session->isAdmin()){
    header (“Location: admin.php”);
    exit;
    } ## NOT TRIED WITH THIS CODE BLOCK, CAUSE THE isAdmin PART IS NOT WORKING
    EITHER ##    //      if($session->isUsr1()){
    //        header (“Location: usr1.php”);
    //      exit;    //      }
    //       if($session->isUsr2()){
    //       header (“Location: usr2.php”);
    //       exit;     //      }
    //        if($session->isUsr3()){
    //      header (“Location: usr3.php”);
    //     exit;   //      }

    else{

    ##  An Extract of the login-html form, that wil be displayed if the user is
    not logged in:

       <form action”process.php” method”post”>
              <label
    for”username”><h4>&nbsp;&nbsp;&nbsp;&nbsp;Username&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</h4>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</label>
    <input type”text” name”user”  maxlength”30″
    value”<? echo $form->value(“user”); echo $form->error(“user”); ?> “/>
    <label
    for”password”><h4>&nbsp;&nbsp;&nbsp;&nbsp;Password&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</h4>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</label>
    <input type”password” name”pass”  maxlength”30″
    value”<? echo $form->value(“user”); echo $form->error(“user”); ?>” />
    <br>
    <label>
    <h4>&nbsp;&nbsp;&nbsp;&nbsp;<input type”checkbox”
    name”remember” <? if($form->value(“remember”) ! “”){ echo “checked”; } ?>
    /> Husk bruker</h4>
    </label>
    <br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type”submit”
    value”Log in” />
    &nbsp;&nbsp;&nbsp;&nbsp;  <input type”button” value”Glemt?”
    onClick”location.href’/PHP-login-script/forgotpass.php’”/>
    <br><br>                  &nbsp; <a
    href”/PHP-login-script/register.php”>&nbsp;&nbsp;&nbsp;<img
    src”images/button.png” border”0″  ></a></img>
    </form> <?php
    } // end else
    ?>

    For now it seems like the script does not redirect the admin user if he/she
    IS logged in, and it does not display the admin.php if the correct password
    and username is typed in the html form.
    So my question to you, how can I get this to function? Should I for example
    do the redirection ( header (“Location: admin.php”);) inside the
    process.php?

    Thank you :)

    VA:F [1.9.22_1171]
    Rating: 4.3/5 (3 votes cast)
    • #17 by Praveen Gowda I V on August 30, 2011 - 6:34 pm

      Hello Silas,

      Thanks for using our tutorials.

      We modified the PHP log in script exclusively for you and you can download it below and use it in your website
      These are the changes from the original script we did

      • Users are redirected to different page depending upon their user level upon login
      • Defined different user levels in constants.php
      • created different user level function in session.php
      • modified admin.php and included the code to update users to the new user levels created
      Just download the script with the features you requested, the script is heavily commented which will help you easily customize the script for your own need

      Download Source Code

      DOWNLOAD

      Admin Demo

      ADMIN DEMO

      Live Demo

      LIVE DEMO

      If you are interested in knowing what are the different changes we did to the original script then look below :

      Source Code of constants.php

      /**
       * Special Names and Level Constants - the admin
       * page will only be accessible to the user with
       * the admin name and also to those users at the
       * admin user level. Feel free to change the names
       * and level constants as you see fit, you may
       * also add additional level specifications.
       * Levels must be digits between 0-9.
       */
      define("ADMIN_NAME", "admin");
      define("GUEST_NAME", "Guest");
      define("ADMIN_LEVEL", 9);
      define("USER_LEVEL",  1);
      define("GUEST_LEVEL", 0);
      //We create different userlevels here
      define("USER1_NAME", "userlevel1");
      define("USER2_NAME", "userlevel2");
      define("USER1_LEVEL", 2);
      define("USER2_LEVEL",  3);
      //simillarly you can define different user levels

      Source Code of session.php

      /**
          * isAdmin - Returns true if currently logged in user is
          * an administrator, false otherwise.
          */
         function isAdmin(){
            return ($this->userlevel == ADMIN_LEVEL ||
                    $this->username  == ADMIN_NAME);
         }
      
          /**
          * isUser1 - Returns true if currently logged in user is
          * an user with userlevel 1, false otherwise.
          */
         function isUser1(){
            return ($this->userlevel == USER1_LEVEL ||
                    $this->username  == USER1_NAME);
         }
      
         /**
          * isUser2 - Returns true if currently logged in user is
          * an user with userlevel 2, false otherwise.
          */
         function isUser2(){
            return ($this->userlevel == USER2_LEVEL ||
                    $this->username  == USER2_NAME);
         }

      Source code of main.php

      <?
      /**
       * Main.php
       *
       * This is an example of the main page of a website. Here
       * users will be able to login. However, like on most sites
       * the login form doesn't just have to be on the main page,
       * but re-appear on subsequent pages, depending on whether
       * the user has logged in or not.
       *
       * Please subscribe to our feeds at http://blog.geotitles.com for more such tutorials
       */
      include("include/session.php");
      //check if user logged in
      if($session->logged_in){
      	//user has logged in, lets redirect him to his corresponding page depending on user level
      if($session->userlevel == 1){//user level of any newly registered user
      header("Location: pages/newuser.php");
      }
      if($session->isUser1()){
      header("Location: pages/userlevel1.php");
      }
      if($session->isUser2()){
      header("Location: pages/userlevel2.php");
      }
      if($session->isAdmin()){
      header("Location: admin/admin.php");
      }
      //simillarly you can create different redirections depending on hummber of userlevels
      }
      else //rest of the form which displays the log in form for users who are not logged in
      ?>
      
      <html>
      <title>login page | jQuery, AJAX, PHP, MySQL, javascript, web design tutorials &amp; demos | php login script demo</title>
      <body>
      
      <table>
      <tr>
        <td>
      
      <?
      //If user not logged in then we display the login form
      if(!$session->logged_in){
      ?>
      
      <h3>This is the live demo of <a href="http://blog.geotitles.com/2011/08/php-login-script-with-advanced-features">PHP login script with added features</a> at <a href="http://blog.geotitles.com">GEO WEB STATION</a>, Click here for the tutorial <a href="http://blog.geotitles.com/2011/08/php-login-script-with-advanced-features">link</a></h3>
      <h1><img src="images/lock_locked.png" width="32" height="32" alt="Login">Login</h1>
      <?
      /**
       * User not logged in, display the login form.
       * If user has already tried to login, but errors were
       * found, display the total number of errors.
       * If errors occurred, they will be displayed.
       */
      if($form->num_errors > 0){
         echo "<font size=\"2\" color=\"#ff0000\">".$form->num_errors." error(s) found</font>";
      }
      ?>
      <form action="process.php" method="POST">
      <table align="left" border="0" cellspacing="0" cellpadding="3">
      <tr><td>Username:</td><td><input type="text" name="user" maxlength="30" value="<? echo $form->value("user"); ?>"></td><td><? echo $form->error("user"); ?></td></tr>
      <tr><td>Password:</td><td><input type="password" name="pass" maxlength="30" value="<? echo $form->value("pass"); ?>"></td><td><? echo $form->error("pass"); ?></td></tr>
      <tr><td colspan="2" align="left"><input type="checkbox" name="remember" <? if($form->value("remember") != ""){ echo "checked"; } ?>>
      <font size="2">Remember me next time &nbsp;&nbsp;&nbsp;&nbsp;
      <input type="hidden" name="sublogin" value="1">
      <input type="submit" value="Login"></td></tr>
      <tr><td colspan="2" align="left"><br><font size="2">[<a href="forgotpass.php">Forgot Password?</a>]</font></td><td align="right"></td></tr>
      <tr><td colspan="2" align="left"><br>Not registered? <a href="register.php">Sign-Up!</a></td></tr>
      </table>
      </form>
      
      <?
      }
      ?>
      
      </td></tr>
      </table>
      
      </body>
      </html>

      Source code of admin.php

      <h3>Update User Level</h3>
      <? echo $form->error("upduser"); ?>
      <table>
      <form action="adminprocess.php" method="POST">
      <tr><td>
      Username:<br>
      <input type="text" name="upduser" maxlength="30" value="<? echo $form->value("upduser"); ?>">
      </td>
      <td>
      Level:<br>
      <select name="updlevel">
      <option value="1">New User
      <option value="9">Admin
      <option value="2">Userlevel 1
      <option value="3">Userlevel 2
      </select>
      </td>
      <td>
      <br>
      <input type="hidden" name="subupdlevel" value="1">
      <input type="submit" value="Update Level">
      </td></tr>
      </form>
      </table>

      We need to create different pages for different userlevels, below is the code of such sample page
      Source Code of userlevel1.php

      <?php
      include("../include/session.php");
      //check if user logged in
      if(!$session->logged_in || !$session->isUser1()){
      	//if user has not logged in or does not belong to userlevel 1 then he is redirected to main.php 
      	header("Location: ../main.php");
      }
      else
      ?>
      
      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
      <html xmlns="http://www.w3.org/1999/xhtml">
      <head>
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
      <title>Untitled Document</title>
      </head>
      
      <body>
      <p>Welcome</p>
      <p>Below display the relevant links</p>
      <p><a href="../process.php">Logout</a></p>
      <?php /**
       * Just a little page footer, tells how many registered members
       * there are, how many users currently logged in and viewing site,
       * and how many guests viewing site. Active users are displayed,
       * with link to their user information.
       */
      echo "</td></tr><tr><td align=\"center\"><br><br>";
      echo "<b>Member Total:</b> ".$database->getNumMembers()."<br>";
      echo "There are $database->num_active_users registered members and ";
      echo "$database->num_active_guests guests viewing the site.<br><br>";
      
      include("../include/view_active.php");
      ?>
      </body>
      </html>

      Hope you find this code useful for all your needs.
      Do reply us back whether this code has been useful for us.
      It will be a great encouragement if you subscribe to our RSS and Email feeds to get regular updates on different tutorials

      VN:F [1.9.22_1171]
      Rating: 4.5/5 (6 votes cast)
  6. #18 by shabad on November 7, 2011 - 1:45 pm

    it is an awesome script. could u please help me out adding a few more fields to the script.the fields should be phone, place, specialisation.
    please help me out.

    VA:F [1.9.22_1171]
    Rating: 5.0/5 (1 vote cast)
    • #19 by Praveen Gowda I V on November 7, 2011 - 1:57 pm

      So you want to add phone, place, specialization to the registration form ?

      VN:F [1.9.22_1171]
      Rating: 5.0/5 (1 vote cast)
  7. #20 by Denise on November 29, 2011 - 3:27 pm

    I suggest adding a facebook like button for the blog!

    VA:F [1.9.22_1171]
    Rating: 5.0/5 (1 vote cast)
  8. #21 by Zan on November 29, 2011 - 6:46 pm

    Hello!
    I want (and I have also tried) to include some files. Start with registration – i want that there is also fields for “First Name” and “Last Name” (I have done it), and that these info, will write in database (I am stuck here). Then I want to have a link for 4 services, that user can order and administrator can control it (I didnt come to here yet), and finally, when user is registering, he must accept Terms of Use.
    Thanks for all your help!

    VA:F [1.9.22_1171]
    Rating: 5.0/5 (1 vote cast)
    • #22 by Praveen Gowda I V on November 29, 2011 - 11:52 pm

      I understood all of your doubts and will provide the solution for that, but I din’t understand by

      Then I want to have a link for 4 services, that user can order and administrator can control it

      Can you please elaborate what you really meant by the above words ?
      If you explain, I will give you the solutions for everything at once.

      Cheers
      Praveen

      VN:F [1.9.22_1171]
      Rating: 5.0/5 (1 vote cast)
    • #23 by Praveen Gowda I V on December 5, 2011 - 6:51 pm

      Hello Zan,

      To create the "Accept Terms checkbox" we can use jquery.Download the code from below and use it in your project.

      You can download the register.php from here

      Here is a link to how it is going to look

      Coming to adding first and last name field, post the code you are using and I will be able to solve your problem.

      VN:F [1.9.22_1171]
      Rating: 5.0/5 (1 vote cast)
      • #24 by Zan on December 7, 2011 - 3:04 am

        I have problem, that I don’t know where to add code, that informations (First Name, Last Name, Telephone number, City,…), will be added to database.

        VA:F [1.9.22_1171]
        Rating: 0.0/5 (0 votes cast)
        • #25 by Praveen Gowda I V on December 7, 2011 - 8:15 am

          For adding the data to the database you must edit the database.php file

          VN:F [1.9.22_1171]
          Rating: 0.0/5 (0 votes cast)
  9. #26 by Zan on November 30, 2011 - 12:41 am

    Ok, I will have web hosting service, and there are 4 different packets of services. User can order then (he can order all of them too), and admin is able to delete his service, First Name and Last Name. Also, can you please add City and Phone number, and admin have right to edit it too.

    Thanks for all your help!

    VA:F [1.9.22_1171]
    Rating: 5.0/5 (1 vote cast)
    • #27 by Praveen Gowda I V on November 30, 2011 - 8:12 am

      Ok got it, get us a couple of days and we will get you the script ready for you.
      In the meanwhile, do subscribe to our Email Updates

      VN:F [1.9.22_1171]
      Rating: 5.0/5 (1 vote cast)
      • #28 by Zan on January 5, 2012 - 12:30 am

        Can I ask, when it will be finished?

        VA:F [1.9.22_1171]
        Rating: 5.0/5 (1 vote cast)
        • #29 by Praveen Gowda I V on January 5, 2012 - 9:42 am

          Hello Zan,
          For your request on how to create the “Accept terms & conditions” button, I have answered above.
          I already advised you that in order to store values in database, you need to edit the database.php file.

          If you have already tried with some code, then just show us the code you are working on and we will help you further.

          Thanks,
          Praveen

          VN:F [1.9.22_1171]
          Rating: 5.0/5 (1 vote cast)
  10. #30 by Thomas on January 2, 2012 - 10:55 pm

    wow this is awesomeeeeeeeeeeeeee! ilove this site

    VA:F [1.9.22_1171]
    Rating: 5.0/5 (1 vote cast)
    • #31 by Praveen Gowda I V on January 3, 2012 - 10:32 am

      Thank you Thomas,
      It really encourages us to work harder in providing better tutorials.

      VN:F [1.9.22_1171]
      Rating: 5.0/5 (1 vote cast)
      • #32 by Thomas on January 30, 2012 - 9:47 pm

        i wanna say thanks and thanks again because the script help me accomplish my first web application, and desktop application.
        few weeks ago i released a desktop software but i wanted to have an online apps for the desktop software and because of ur php script it make my dream come true. just wannna say thankkkkkkkks alot .
        Little details about the desktop i released: it keep record of all the students living on the university dormitory , it stores information such as name, id# , room # , photo etc… and at that time i wanted to create a web app but just didnt know how to create a login script with admin control etc.. and ur script helped me to do it.
        lil Detail about the web app: it store the same information as the desktop app using online sql server. but in the web app i have features where each resident adviser has their own login information where they can login and see which room a particular student stay in , etc.,… all i can say its a huge apps and i wannna say thank again.

        VA:F [1.9.22_1171]
        Rating: 5.0/5 (1 vote cast)
        • #33 by Praveen Gowda I V on January 31, 2012 - 4:13 pm

          Nice to hear that.
          I am always encouraged to create more useful tutorials on hearing such stories.
          At the end of the day, what matters is that our tutorials are helping someone to make their work easier.
          Do subscribe to our Email Updates (after subscribing you need to verify the email) since we are releasing lot of interesting and useful tutorials in the month of February.
          There has been a slight delay in releasing our tutorials since we are planning on the redesign of our blog as well.
          Do refer our blog to your friends as well and hope all the tutorials coming up help you with your future projects.
          Have a nice time.

          Cheers,
          Praveen Gowda I V

          VN:F [1.9.22_1171]
          Rating: 3.0/5 (2 votes cast)
  11. #34 by Sunny on January 30, 2012 - 7:23 am

    “Note: this email system will not work
    * if your server is not setup to send mail.”

    It says that in the mailer.php. I don’t really understand what is means. How can I get the the email working?

    VA:F [1.9.22_1171]
    Rating: 3.0/5 (2 votes cast)
    • #35 by Praveen Gowda I V on January 30, 2012 - 5:44 pm

      Don’t worry about that
      If you are on a shared hosting it will work fine most of the times.
      If you have set up on your local machine, do let me know and I will tell you how to setup to send email.

      You also need to turn on the option to send email, so read through the documentation page carefully.

      VN:F [1.9.22_1171]
      Rating: 3.0/5 (2 votes cast)
  12. #36 by Sunny on January 30, 2012 - 7:08 pm

    So for example If I was using justhost, and the website name was sunny.com, all I need to do is register a webmail on It(donotreply@sunny.org) ? And then just write my email where is says on constants.php? I’ve tried that but is didn’t work.

    VA:F [1.9.22_1171]
    Rating: 2.5/5 (2 votes cast)
    • #37 by Praveen Gowda I V on January 31, 2012 - 4:28 pm

      There is no need to register any email account in webmail.
      Moreover if it is a do-not-reply email then it is advised not create that account.
      If the email confirmation is not working then make sure that line 82 in constants.php is set to true

      define("EMAIL_WELCOME", true);
      VN:F [1.9.22_1171]
      Rating: 3.0/5 (2 votes cast)
  13. #38 by Sunny on February 1, 2012 - 5:34 am

    Where should I create my e-mail? I am currently using freehosting.com. And yes, the E-mail confirmation is set to true.

    VA:F [1.9.22_1171]
    Rating: 0.0/5 (0 votes cast)
    • #39 by Praveen Gowda I V on February 1, 2012 - 8:13 am

      If email configuration is set to true and if it is still not working, then better contact your host.

      VN:F [1.9.22_1171]
      Rating: 0.0/5 (0 votes cast)
  14. #40 by Sunny on February 2, 2012 - 2:58 am

    What should i put in the email address section?

    VA:F [1.9.22_1171]
    Rating: 2.5/5 (2 votes cast)
  15. #41 by feyqa on February 23, 2012 - 9:04 am

    hi..
    this really a good script..however i want to know 2 thing :
    1. can i know how to set when the new register with the existing email in database it will show error that the email already been used?
    2. for forget password, i want user to input their email not username.. so how can i do it?
    sorry, i’m still new in this field ^^. hope you can help me as soon as possible..thanks

    VA:F [1.9.22_1171]
    Rating: 3.0/5 (2 votes cast)
    • #42 by Praveen Gowda I V on February 23, 2012 - 5:12 pm

      We can definitely add this features into the login script, but it will require significant amount of coding and If you can send us a small donation through our donation page, then we can definitely customize the script for you.

      VN:F [1.9.22_1171]
      Rating: 3.0/5 (2 votes cast)
  16. #43 by Sunny on February 26, 2012 - 1:53 am

    Great script! Although is there anyway you can add a feature where admin’s can unban users? (So if you login and you are banned, it will “you have been banned for X amount of hours” instead of “username not found”.)

    VA:F [1.9.22_1171]
    Rating: 0.0/5 (0 votes cast)
    • #44 by Praveen Gowda I V on February 26, 2012 - 12:02 pm

      Yeah that is definitely possible (just adding a small function to unban the users will do).
      But due to the huge volume of requests we get nowadays we are unable to provide customised code for everyone.
      If you give it a try and run up into any trouble give us the code you are working on and we can help you get it right.
      Or give us a small donation and we will customize the script for you.
      We are happy that you find our tutorial useful and feel free to contact us anytime and we are always here to help you.

      VN:F [1.9.22_1171]
      Rating: 2.5/5 (2 votes cast)
      • #45 by Sunny on February 27, 2012 - 7:05 am

        sure. I’ll try my best.

        VA:F [1.9.22_1171]
        Rating: 3.0/5 (2 votes cast)
        • #46 by Praveen Gowda I V on February 28, 2012 - 9:35 pm

          Do come back to us whenever you are struck with anything and we happy to help.

          VN:F [1.9.22_1171]
          Rating: 0.0/5 (0 votes cast)
  17. #47 by Jen on March 1, 2012 - 7:52 pm

    Can this be used for WordPress? Also I would need to make so not just anybody can register..

    VA:F [1.9.22_1171]
    Rating: 3.0/5 (2 votes cast)
    • #48 by Praveen Gowda I V on March 1, 2012 - 8:14 pm

      Hello Jen,
      Contact me via email at praveen.vvstgy[at]gmail.com or through the contact page and I will let you know the further details.

      VN:F [1.9.22_1171]
      Rating: 3.0/5 (2 votes cast)
  18. #49 by Steve on March 16, 2012 - 6:09 pm

    Hi, i got a question about adding fields to the registration form.

    I already update the insert query to add the following fields:
    fname
    lnam

    Also updated the db and added the respective columns.
    Checked the session, process files to update those and to register session variables for the new fields and add error checks.

    However, my registration fails and I don’t get the errors returned when filling in the form.

    I edited:
    database.php: function addNewUser
    process.php: function ProcRegister
    session.php: function register; login
    register.php: added fields for fname; lname

    thx for sharing this script.

    VA:F [1.9.22_1171]
    Rating: 0.0/5 (0 votes cast)
    • #50 by Praveen Gowda I V on March 16, 2012 - 6:21 pm

      Hi Steve I have sent you an mail, do check your email

      VN:F [1.9.22_1171]
      Rating: 0.0/5 (0 votes cast)
      • #51 by banti on April 2, 2012 - 2:18 am

        I also have the same problem, I added new fields on the form, updated the the database and the system wont let me register a new user.

        VA:F [1.9.22_1171]
        Rating: 0.0/5 (0 votes cast)
        • #52 by Praveen Gowda I V on April 2, 2012 - 4:36 pm

          Zip the files you have modified and sent it to me at praveen.vvstgy[at]gmail.com, I will let you know what you need to get it working.

          VN:F [1.9.22_1171]
          Rating: 0.0/5 (0 votes cast)
          • #53 by banti on April 3, 2012 - 1:10 am

            I have zipped my files and sent then to you.

            thanks for the speed reply.

            VA:F [1.9.22_1171]
            Rating: 0.0/5 (0 votes cast)
          • #54 by Jacob on September 19, 2012 - 1:07 pm

            what seemed to be the problem because I’m getting the same errors and all i added was fields for fullname

            VA:F [1.9.22_1171]
            Rating: 0.0/5 (0 votes cast)
          • #55 by Praveen Gowda I V on September 19, 2012 - 2:12 pm

            Adding new fields is not easy as it seems to be.
            Send in your files, by first contacting through the contact form and I will let you know where you might have gone wrong.

            VN:F [1.9.22_1171]
            Rating: 0.0/5 (0 votes cast)
  19. #56 by joynal on March 17, 2012 - 4:42 pm

    Hi
    i download ur login script but i can find any database name.
    and where i write i change table, database name. please help me……

    VA:F [1.9.22_1171]
    Rating: 0.0/5 (0 votes cast)
  20. #58 by karen on March 19, 2012 - 10:13 pm

    Hi,
    Thank you for the script. I have taken it and put it into a cms format. Several strange things are happening. After forgetting password and then and clicking login I go back to register. Also, when I have a login error, the errors show in register page. You can try it out on:
    kshotz.com/vision.php?content=register
    Also, how do I handle this line in main.inc.php (original main.php)

    what happens is I get error message because I am using a CMS model.
    I appreciate your help.
    Thank you,
    K

    VA:F [1.9.22_1171]
    Rating: 5.0/5 (2 votes cast)
    • #59 by Praveen Gowda I V on March 19, 2012 - 10:45 pm

      Hi Karen,

      I just registered in the login script of your site and I noticed the errors you mentioned.
      ZIp all the files of the login script you are using on your site and send it to praveen.vvstgy[at]gmail.com and I will let you know what’s wrong and help you get it right.

      I will be looking forward for your mail.

      cheers

      P.S – I have edited your comment and removed the small piece of code you posted since it was not formatted properly (but don’t worry I’ll try to fix what you mentioned as well)

      VN:F [1.9.22_1171]
      Rating: 0.0/5 (0 votes cast)
      • #60 by karen on May 14, 2012 - 6:22 pm

        Hi Praveen,
        Just wondering what happend, since I never heard back from you.
        Thank you,
        K

        VA:F [1.9.22_1171]
        Rating: 3.0/5 (2 votes cast)
        • #61 by Praveen Gowda I V on May 14, 2012 - 7:58 pm

          Oh I have been really busy and I also forgot the request you made.
          I will give it a look this weekend, sorry for the inconvenience :) .

          VN:F [1.9.22_1171]
          Rating: 0.0/5 (0 votes cast)
          • #62 by karen on May 16, 2012 - 11:18 pm

            Thank you

            VA:F [1.9.22_1171]
            Rating: 0.0/5 (0 votes cast)
  21. #63 by Takis on March 22, 2012 - 10:48 pm

    Hello. I have a problem. At every action I take, it redirect me normally to the proccess.php and then an error occurs. Deprecated: Function eregi() is deprecated in /home/tcd/public_html/include/session.php on line 134
    Other actions are on different lines. Am I doing something wrong?

    VA:F [1.9.22_1171]
    Rating: 3.5/5 (2 votes cast)
  22. #66 by Anthony on March 25, 2012 - 8:26 pm

    Hello,

    Thanks for you great scripts. I have tried to set it up in my localhost on a PC and test the index.php. The following results come up… How can I fix it? THX

    ================================

    logged_in){ echo ‘
    This is the live demo of PHP login script with added features at GEO WEB STATION, Click here for the tutorial link

    ‘; echo ‘
    Logged In

    ‘; echo “Welcome $session->username, you are logged in.

    ” .”[username\">My Account] ” .”[Edit Account] “; if($session->isAdmin()){ echo “[Admin Center] “; } echo ‘[Logout]‘; } else{ ?>
    This is the live demo of PHP login script with added features at GEO WEB STATION, Click here for the tutorial link

    Admin Login

    num_errors > 0){ echo “”.$form->num_errors.” error(s) found”; } ?>
    Username: “> error(“user”); ?>
    Password: “> error(“pass”); ?>
    value(“remember”) != “”){ echo “checked”; } ?>> Remember me next time

    [Forgot Password?]

    Not registered? Sign-Up!

    “; echo “Member Total: “.$database->getNumMembers().”
    “; echo “There are $database->num_active_users registered members and “; echo “$database->num_active_guests guests viewing the site.

    “; include(“include/view_active.php”); ?>

    VA:F [1.9.22_1171]
    Rating: 3.0/5 (2 votes cast)
    • #67 by Praveen Gowda I V on March 25, 2012 - 8:33 pm

      Hi Anthony,

      To prevent this from arising you need to change <? to <?php in the whole of the source code.
      but this may be a bit tiring, hence an alternative solution is to open php.ini and

      replace

      short_open_tag = Off

      with

      short_open_tag = On

      Choose whichever is convenient.
      Hope it is helpful.

      VN:F [1.9.22_1171]
      Rating: 3.0/5 (2 votes cast)
  23. #68 by Anthony on March 26, 2012 - 7:26 am

    Great, it’s fixed. THX

    VA:F [1.9.22_1171]
    Rating: 3.0/5 (2 votes cast)
  24. #69 by Wayy on April 15, 2012 - 2:07 pm

    Hi,
    Is there a way to customise the login session where the session will timeout after x minutes of inactivity.

    VA:F [1.9.22_1171]
    Rating: 0.0/5 (0 votes cast)
  25. #70 by Dante on April 30, 2012 - 9:07 pm

    Hello. First of all, thank you for this amazing script! Secondly, I have a problem with the code. When I try to register, this comes up “Registration Failed..bla bla bla”. I dont know why, i have uploaded evrything on my server as I am suposed to do. Or well, I dont really know where i should upload the sql file. So I uploaded it to my rot.

    If you could help me out, I would really appreciate it!

    PS. Sorry for my bad english :P

    //D

    VA:F [1.9.22_1171]
    Rating: 0.0/5 (0 votes cast)
    • #71 by Praveen Gowda I V on April 30, 2012 - 9:56 pm

      No uploading the sql file to the root will not help.
      You have two options.
      1.Run the code in sql file as a query in phpmyadmin

      or

      2.Import the file in phpmyadmin to any desired mysql database you gave alrady created.

      I believe you have good knowledge of creating mysql databases and working in phpmyadmin.
      If not then just contact me at praveen.vvstgy[at]gmail.com and I will help you with it.

      Hope it helps.

      VN:F [1.9.22_1171]
      Rating: 3.0/5 (2 votes cast)
  26. #74 by M Thellend on May 14, 2012 - 2:05 am

    Thanks for the mods to the script for my website.

    You’re mods were worth every penny I spent.

    Mike

    VA:F [1.9.22_1171]
    Rating: 0.0/5 (0 votes cast)
  27. #75 by ali on May 14, 2012 - 3:34 am

    hi,
    i see the demo ,but i can’t access the link for download because in my country that server has been filterd.could you put mediafire link for download.thank you.

    VA:F [1.9.22_1171]
    Rating: 0.0/5 (0 votes cast)
    • #76 by Praveen Gowda I V on May 14, 2012 - 9:30 am

      I can’t upload to mediafire, so I have sent the file has an attachment to your email.

      VN:F [1.9.22_1171]
      Rating: 3.0/5 (2 votes cast)
  28. #77 by nur on May 14, 2012 - 10:06 am

    hi…very great! but,i don’t understand how to create admin login.i’m new in php.anyway,thanks.

    VA:F [1.9.22_1171]
    Rating: 0.0/5 (0 votes cast)
    • #78 by Praveen Gowda I V on May 14, 2012 - 10:08 am

      What do you mean by admin login ?
      The login screen for both admin and other users are the same, there isn’t any new page for admin login.

      VN:F [1.9.22_1171]
      Rating: 0.0/5 (0 votes cast)
      • #79 by nur on May 14, 2012 - 10:37 am

        oo i see..it means that admin and user will go the same page after log in? sorry.i don’t understand =.=’

        VA:F [1.9.22_1171]
        Rating: 0.0/5 (0 votes cast)
        • #80 by Praveen Gowda I V on May 14, 2012 - 11:09 am

          Download the source code and examine and you will understand :)

          VN:F [1.9.22_1171]
          Rating: 3.0/5 (2 votes cast)
          • #81 by nur on May 14, 2012 - 12:50 pm

            it works.may be i expect different page for admin.admin can see the whole members registered and so on…anyway,thanks! =)
            really10x like the script! ^^

            VA:F [1.9.22_1171]
            Rating: 0.0/5 (0 votes cast)
  29. #82 by vuyo mfazi on May 16, 2012 - 8:07 pm

    Please send me your php-login script

    VA:F [1.9.22_1171]
    Rating: 0.0/5 (0 votes cast)
  30. #84 by WDR on May 17, 2012 - 4:48 pm

    Hi im using your php login script for my site but im having trouble to implent it in my index.html so ppl can login/register from there. Ive used the the main.php info but when i log in it redirects me to main.php again?
    Any ideas?
    thanks

    VA:F [1.9.22_1171]
    Rating: 0.0/5 (0 votes cast)
    • #85 by Praveen Gowda I V on May 17, 2012 - 7:56 pm

      Hope you meant index.php and not index.html.
      Coming to the redirection, the user is redirected to the referring page and hence you must be redirected back to the index.php file.
      Give the url of the page where you have this script installed and I will have a look.

      VN:F [1.9.22_1171]
      Rating: 0.0/5 (0 votes cast)
      • #86 by WDR on May 17, 2012 - 9:50 pm

        well its index.html causse if i use index.php the layout is screwed up. the site is mcbevers.be. Im still very new to scripting so most of the time its copy and past i use.
        thanks

        VA:F [1.9.22_1171]
        Rating: 0.0/5 (0 votes cast)
        • #87 by Praveen Gowda I V on May 18, 2012 - 1:06 am

          No you are doing it wrong, this way the login script is never going to work.
          The file needs to index.php and not index.html.
          If it isn’t a php file you cannot expect the login script to work (remember it is PHP login script).
          If there is any problem with using the php file contact me at praveen.vvstgy[at]gmail.com and I will get it working for you.

          VN:F [1.9.22_1171]
          Rating: 0.0/5 (0 votes cast)
          • #88 by WDR on May 26, 2012 - 9:53 am

            hey did you get my email? :)
            I made a login.php but when i log as admin it redirects me to main.php where i need to login again any ideas to sovle this?
            thx

            VA:F [1.9.22_1171]
            Rating: 0.0/5 (0 votes cast)
          • #89 by Praveen Gowda I V on May 26, 2012 - 10:38 am

            I have sent a reply, have a look at it.

            VN:F [1.9.22_1171]
            Rating: 0.0/5 (0 votes cast)
  31. #90 by alex on May 18, 2012 - 10:20 pm

    Hello!
    Your script is the best login script I found on the net. It has every single feature I need.

    I’d like to know if you can implement registration confirmation by email ? Is it possibile ? I’d like a user to click on a link sent to his email address in order to be registered on the site.
    If you can help me out with this it would be great!

    Thank you very very much!

    VA:F [1.9.22_1171]
    Rating: 5.0/5 (1 vote cast)
    • #91 by Praveen Gowda I V on May 19, 2012 - 10:55 am

      I have sent you an email with the details, please check it out.

      VN:F [1.9.22_1171]
      Rating: 5.0/5 (1 vote cast)
      • #92 by alex on May 21, 2012 - 3:31 am

        Please check your email for the reply and thanks again for your help. Have a nice day mate!

        VA:F [1.9.22_1171]
        Rating: 5.0/5 (1 vote cast)
  32. #93 by Bhaskar on May 25, 2012 - 1:05 pm

    Dear Praveen

    This is sheer delight !

    After having been working on a user system like this for two days, I am really glad i came across this post.

    You have saved me literally several days of work and effort having to reinvent the wheel. And its done so well :)

    Now i just neeed to do some customization – i will capture IP address for users. thats it.

    I had to modify all shorthand php starting tags <? – but that is nothing when you are saving days of work and getting a much more professionally done script with admin backend. You are amazing.

    ____
    P.S
    I am currently getting a warning message on register.php which reads:

    Warning: mysql_numrows() expects parameter 1 to be resource, boolean given in wamp\www\test\usr\include\database.php on line 206

    While I think i will figure it out, Any ideas, why ?

    VA:F [1.9.22_1171]
    Rating: 0.0/5 (0 votes cast)
  33. #94 by Bhaskar on May 25, 2012 - 1:07 pm

    while this is a huge save-time stuff, Just noticed you have a tag called waste time and this post is tagged to it :)

    VA:F [1.9.22_1171]
    Rating: 0.0/5 (0 votes cast)
    • #95 by Praveen Gowda I V on May 25, 2012 - 2:20 pm

      Oops, all thanks to a stupid plugin I was using to suggest tags during the time I published this post.
      Thanks for letting me know.

      VN:F [1.9.22_1171]
      Rating: 0.0/5 (0 votes cast)
  34. #96 by Bhaskar on May 27, 2012 - 12:47 am

    Hi Praveen

    I am using this login script for a website and i noticed that MYSQl has automatically assigned latin1_swedish_ci collation to the db.

    I tried changing the collation to utf_8_general and all seems to work well except that userid is being updated as 0.

    Any possible pointers ?

    Thanks again for everything

    VA:F [1.9.22_1171]
    Rating: 0.0/5 (0 votes cast)
  35. #98 by Bhaskar on May 27, 2012 - 12:55 am

    Just noticed that database.php, function addNewUser (around line 150) reads:

    $q = “INSERT INTO “.TBL_USERS.” VALUES (‘$username’, ‘$password’, ’0′, $ulevel, ‘$email’, $time)”;

    why is ’0′ mentioned in place of $userid ?

    thnks

    VA:F [1.9.22_1171]
    Rating: 0.0/5 (0 votes cast)
    • #99 by Praveen Gowda I V on May 27, 2012 - 9:21 am

      Yes, it has to be zero.
      Because it corresponds to adding a new user, since we are only adding a new user to the database and the user has not actually logged in, we are putting the value of userid as zero, login once and you can see the value of userid changes.
      And the value of userid field changes everytime you login.
      Read the comments carefully and you will get an idea of how the whole login system works.

      VN:F [1.9.22_1171]
      Rating: 0.0/5 (0 votes cast)
  36. #100 by paingha on June 1, 2012 - 2:20 pm

    please the download link is not working can i get another one please thanks a million

    VA:F [1.9.22_1171]
    Rating: 0.0/5 (0 votes cast)
    • #101 by Praveen Gowda I V on June 1, 2012 - 5:16 pm

      The download link is working perfectly. Which country are you from?
      Tell me which files you need and I will email it to you.

      VN:F [1.9.22_1171]
      Rating: 0.0/5 (0 votes cast)
  37. #102 by Bhaskar on June 3, 2012 - 9:38 pm

    Hi Praveen

    Where exactly in the script do you trigger a welcome mail on ‘regsuccess’ from the format specified in mailer.php

    Its not there in addNewUser function in database.php, nor is it done at register( $subuser, $subpass, $subemail) in sessions.php

    thanks again for this great script

    VA:F [1.9.22_1171]
    Rating: 5.0/5 (1 vote cast)
    • #103 by Praveen Gowda I V on June 3, 2012 - 9:48 pm

      Look properly in function register($subuser, $subpass, $subemail).
      look at the very bottom of this function search for
      $mailer->sendWelcome($subuser,$subemail,$subpass);

      VN:F [1.9.22_1171]
      Rating: 0.0/5 (0 votes cast)
  38. #104 by Bhaskar on June 3, 2012 - 9:48 pm

    please ignore my previous comment.. i located it in session.php

    VA:F [1.9.22_1171]
    Rating: 0.0/5 (0 votes cast)
  39. #105 by Bhaskar on June 5, 2012 - 2:40 am

    Hi Praveen,

    I just read a disturbing piece of article which says md5 hashing is not at all safe.

    read it here: http://codahale.com/how-to-safely-store-a-password/

    also wanted to ask if the login script takes care of chances of session hijacking ?

    VA:F [1.9.22_1171]
    Rating: 0.0/5 (0 votes cast)
  40. #106 by sachin on June 7, 2012 - 1:02 pm

    I got this error. I am new in PHP.Please help me.

    Notice: Undefined index: doLogin in D:\xampp\htdocs\phplogin1\index.php on line 23

    VA:F [1.9.22_1171]
    Rating: 5.0/5 (1 vote cast)
    • #107 by santosh on June 7, 2012 - 4:12 pm

      Hi I need one clarification. In Admin panel create new user if we didn’t give any password, a password will be auto generated. Can you explane once.

      VA:F [1.9.22_1171]
      Rating: 3.0/5 (1 vote cast)
      • #108 by Praveen Gowda I V on June 7, 2012 - 5:06 pm

        Are you sure you are working with our login script ?
        Because there is no function in the admin panel to create new users.

        VN:F [1.9.22_1171]
        Rating: 0.0/5 (0 votes cast)
  41. #109 by santosh on June 7, 2012 - 5:27 pm

    yes. In our admin panel create a new user. in that admin.php file, a password is automatically generated when we did not give password.

    VA:F [1.9.22_1171]
    Rating: 0.0/5 (0 votes cast)
  42. #110 by santosh on June 7, 2012 - 5:32 pm

    when we click admin CP, then we have a create new user form. In that the password is automatically generated. Can you enplane it once.

    VA:F [1.9.22_1171]
    Rating: 5.0/5 (1 vote cast)
  43. #111 by ralph van der tang on June 11, 2012 - 5:43 pm

    i still keep seeing php in html forms adepted php.ini
    but that didnt work chaged tags didnt do it either

    any suggestions?

    Regards ziox

    VA:F [1.9.22_1171]
    Rating: 0.0/5 (0 votes cast)
    • #112 by Praveen Gowda I V on June 11, 2012 - 6:14 pm

      Have you replaced all the tags, because there are many within each file, not just one at the start of a page.

      VN:F [1.9.22_1171]
      Rating: 0.0/5 (0 votes cast)
  44. #113 by memo on June 12, 2012 - 3:41 am

    Your work seems great to me. I’m a latin guy, but I’ll try to explain my problem.

    I lunch the page with your scripts, and these are the errors I get:

    Warning: mysql_numrows() expects parameter 1 to be resource, boolean given in …/include/database.php on line 206

    Warning: mysql_numrows() expects parameter 1 to be resource, boolean given in …/include/database.php on line 217

    Warning: session_start() [function.session-start]: Cannot send session cookie – headers already sent by (output started at …/include/database.php:206) in …/include/session.php on line 45

    Warning: session_start() [function.session-start]: Cannot send session cache limiter – headers already sent (output started at …/include/database.php:206) in …/include/session.php on line 45

    Warning: mysql_numrows() expects parameter 1 to be resource, boolean given in …/include/database.php on line 217

    Warning: mysql_numrows() expects parameter 1 to be resource, boolean given in …/include/database.php on line 206

    Warning: mysql_numrows() expects parameter 1 to be resource, boolean given in …/include/database.php on line 217

    Warning: mysql_numrows() expects parameter 1 to be resource, boolean given in …/include/database.php on line 193
    Member Total:
    There are registered members and guests viewing the site.

    Warning: mysql_numrows() expects parameter 1 to be resource, boolean given in …/include/view_active.php on line 10
    Error displaying info

    Hope you can help me

    Thanks :)

    VA:F [1.9.22_1171]
    Rating: 0.0/5 (0 votes cast)
    • #114 by memo on June 12, 2012 - 6:13 am

      ok buddy don’t worry, I’ve found the mistake. I forgot to create the database… XD. now everything’s allright :D

      VA:F [1.9.22_1171]
      Rating: 0.0/5 (0 votes cast)
    • #116 by Praveen Gowda I V on June 12, 2012 - 8:07 am

      You have not created the database, give it a look.

      VN:F [1.9.22_1171]
      Rating: 0.0/5 (0 votes cast)
  45. #117 by memo on June 12, 2012 - 9:52 am

    well I wrote this before but I’m not sure it was sent. so I write it again:

    I implemented your fantastic script into my site. it works very good! but I have a question.

    when I lunch the page http://www.mysite.com then the Admin Login page shows up, with the form filled with username “Admin” and password “*****”. only when I lunch http://www.mysite.com/main.php then the login form empty appears ready to be filled.

    the idea is that the empty login form appears in http://www.mysite.com, not in http://www.mysite.com/main.php

    how can I solve this problem?

    sorry my english, I’m a latin guy

    thanks a lot :)

    VA:F [1.9.22_1171]
    Rating: 0.0/5 (0 votes cast)
    • #118 by memo on June 12, 2012 - 10:00 am

      oops sorry for the links. I only wanted to write a non-real website just for example. I didn’t know that website exists.

      but my question still stands… :)

      VA:F [1.9.22_1171]
      Rating: 0.0/5 (0 votes cast)
    • #119 by Praveen Gowda I V on June 12, 2012 - 3:25 pm

      Actually the index.php is the exact duplicate of main.php, I have created the index.php file so that all users can test the Admin account without having to type the Admin login credentials themselves, so just blindly copy the contents of the file main.php to index.php and it will work the way you asked.

      Alternatively, just replace the form in index.php with the following code:

      
      
      VN:F [1.9.22_1171]
      Rating: 0.0/5 (0 votes cast)
  46. #120 by rox0rlexander Krämer on June 18, 2012 - 12:16 am

    It shows 8 errors when i install it…
    why?
    please help me.
    Here are the errors:

    Warning: mysql_numrows() expects parameter 1 to be resource, boolean given in /users/rox0r/www/cgi-bin/include/database.php on line 206

    Warning: mysql_numrows() expects parameter 1 to be resource, boolean given in /users/rox0r/www/cgi-bin/include/database.php on line 217

    Warning: session_start() [function.session-start]: Cannot send session cache limiter – headers already sent (output started at /users/rox0r/www/cgi-bin/include/database.php:206) in /users/rox0r/www/cgi-bin/include/session.php on line 45

    Warning: mysql_numrows() expects parameter 1 to be resource, boolean given in /users/rox0r/www/cgi-bin/include/database.php on line 217

    Warning: mysql_numrows() expects parameter 1 to be resource, boolean given in /users/rox0r/www/cgi-bin/include/database.php on line 206

    Warning: mysql_numrows() expects parameter 1 to be resource, boolean given in /users/rox0r/www/cgi-bin/include/database.php on line 217

    Warning: mysql_numrows() expects parameter 1 to be resource, boolean given in /users/rox0r/www/cgi-bin/include/database.php on line 193

    Warning: mysql_numrows() expects parameter 1 to be resource, boolean given in /users/rox0r/www/cgi-bin/include/view_active.php on line 10
    Error displaying info

    greets. Alex

    VA:F [1.9.22_1171]
    Rating: 0.0/5 (0 votes cast)
    • #121 by Praveen Gowda I V on June 18, 2012 - 8:53 am

      May be you have not set the MySQL database credentials in the constants.php properly, give it a look.

      VN:F [1.9.22_1171]
      Rating: 0.0/5 (0 votes cast)
      • #122 by rox0rlexander Krämer on June 18, 2012 - 12:27 pm

        I just have to fill in the 4 lines:
        define(“DB_SERVER”, “localhost”);

        define(“DB_USER”, “databasename”);//enter your database username

        define(“DB_PASS”, “databasepassword”);//databse password

        define(“DB_NAME”, “databasename”);//database name

        Or what do I have to fill in too?

        VA:F [1.9.22_1171]
        Rating: 0.0/5 (0 votes cast)
        • #123 by Praveen Gowda I V on June 18, 2012 - 1:39 pm

          That’s it you must fill in the four lines and also you must create the database tables using the sql file that comes with the zip file.

          VN:F [1.9.22_1171]
          Rating: 0.0/5 (0 votes cast)
          • #124 by rox0rlexander Krämer on June 18, 2012 - 1:46 pm

            i created the database…
            do i have to create the table too?
            greets.

            VA:F [1.9.22_1171]
            Rating: 0.0/5 (0 votes cast)
          • #125 by Praveen Gowda I V on June 18, 2012 - 5:56 pm

            Yes you need to create the tables as well
            First create the database
            and then import the sql file in phpmyadmin

            VN:F [1.9.22_1171]
            Rating: 0.0/5 (0 votes cast)
          • #126 by rox0rlexander Krämer on June 19, 2012 - 2:06 am

            oh ok thanks :)
            now it is working ;)

            VA:F [1.9.22_1171]
            Rating: 0.0/5 (0 votes cast)
  47. #127 by Luke on June 19, 2012 - 5:28 am

    Hi, just wanted to pop by firstly to say thank you for such a great script, it really is amazing!!!!!! and secondly i’m really struggling to work out how i can query the database from the main.php page for example how could i do this

    $select = “SELECT * FROM tbl_places”;
    $query = mysql_query($select);
    while($row=mysql_fetch_array($query))
    {
    echo $row['placeName'];
    }

    the above query is what i would normally do but this does not work in oop, could you please show me an example of quering the database on the main page using the database class please, have spent ages trying to figure it out.

    many thanks

    VA:F [1.9.22_1171]
    Rating: 0.0/5 (0 votes cast)
    • #128 by Praveen Gowda I V on June 19, 2012 - 1:58 pm

      Hi Luke,

      Have a look at the function displayUsers() in admin.php
      This will give you an idea how to go about.

      VN:F [1.9.22_1171]
      Rating: 0.0/5 (0 votes cast)
      • #129 by Luke on June 19, 2012 - 7:29 pm

        Thanks,
        I will change that to get what i want out of the db :)

        does it matter where i put the function, does it have to be on the index page or somewhere else?

        thank you

        VA:F [1.9.22_1171]
        Rating: 0.0/5 (0 votes cast)
        • #130 by Praveen Gowda I V on June 19, 2012 - 8:01 pm

          If you are comfortable putting it in main.php or index.php, then its fine, or if you want to put it in session.php then you should call it like $session->myFunction()
          I hope you are getting what I mean.

          VN:F [1.9.22_1171]
          Rating: 0.0/5 (0 votes cast)
          • #131 by Luke on June 20, 2012 - 12:07 am

            ok thats great thank you very much for your help!!!!!

            VA:F [1.9.22_1171]
            Rating: 0.0/5 (0 votes cast)
  48. #132 by memo on June 20, 2012 - 9:33 pm

    question: did you add some extra codes? I re-downloaded your script, and there are more “pages” in it

    VA:F [1.9.22_1171]
    Rating: 0.0/5 (0 votes cast)
    • #133 by Praveen Gowda I V on June 20, 2012 - 9:50 pm

      No, There has not been any update that is done to the script ever since we released, although we are working on a new update to be released next month.
      I think you might have downloaded some of the modified scripts which we have been posted in the comments, which might have confused you, other than that there has been no update to the original file.

      VN:F [1.9.22_1171]
      Rating: 0.0/5 (0 votes cast)
  49. #134 by roheta on June 21, 2012 - 9:04 pm

    Hi this tutorial is really helpful. Can i have n number of admin using this login session. For example
    if i have n number of buyers who add product and send to their favorite supplier i.e A,B,C,D…. providing their email address and after getting password from email. Supplier A with login and he can update the list send my n numbers of buyer and B respectively..What i want is n number of admin can edit only they list and not able to see others list is it possible

    VA:F [1.9.22_1171]
    Rating: 0.0/5 (0 votes cast)
    • #135 by Praveen Gowda I V on June 21, 2012 - 9:21 pm

      Yeah it is possible.
      Create different user levels (just like we have the admin level and guest level), then for a given user you can display different lists.

      Alternatively, the second method is,

      create another database table which contain details of the list for every user and when a particular user log in, you can retrieve database records of only the logged in user and display it, so the user can edit it.

      If you find it too difficult to get it all done by yourself, then you can hire me for this job.

      VN:F [1.9.22_1171]
      Rating: 0.0/5 (0 votes cast)
  50. #136 by roheta on June 21, 2012 - 9:41 pm

    since i am a student and doing my assignment i cant hire you but if you can help me will be appreciated Thank you

    VA:F [1.9.22_1171]
    Rating: 0.0/5 (0 votes cast)
    • #137 by Praveen Gowda I V on June 21, 2012 - 10:04 pm

      Give it a shot and contact me whenever you need help and I will be there to help you out.

      VN:F [1.9.22_1171]
      Rating: 0.0/5 (0 votes cast)
  51. #138 by roheta on June 22, 2012 - 4:27 pm

    i have a buyer table:- id|username|password|email|name
    supplier table:-id|username|password|email|name
    product table:-id|pd_name|buyer_id|supplier id
    but i dont knw how to insert the ids in the product table so dat when supplier login can see the product list insert by buyer i dont nw how to proceed plz plz help me

    VA:F [1.9.22_1171]
    Rating: 0.0/5 (0 votes cast)
    • #139 by Praveen Gowda I V on June 22, 2012 - 6:34 pm

      Instead of buyer id and supplier id, just insert the buyer username and supplier username into the product table, then when the supplier log in, retrieve the database records of any given buyer and vice versa.

      VN:F [1.9.22_1171]
      Rating: 0.0/5 (0 votes cast)
  52. #140 by roheta on June 22, 2012 - 7:46 pm

    when i run the query
    select sup.username,sup.name,pd.pd_name FROM product pd,supplier sup WHERE sup.username=pd.supplier
    i get all the records from database
    but i want to retrive only dat record whose supplier is logged in and retrive the record given my buyers where i am going wrong

    VA:F [1.9.22_1171]
    Rating: 0.0/5 (0 votes cast)
  53. #141 by Luke on June 24, 2012 - 11:37 pm

    I dont suppose it is possible to use this script but have a multiple page sign up form, so the user is presented with the sign up form and fills in it as normal if errors then display errors if not then display a second form (but on the same page) and then on this form have the same sort of thing?

    i am wanting to do a 4 part sign up form like so

    Step 1 of 4
    <form name="step1" id="step1" action="” method=”post”>

    Username:

    Password:

    Retype Password:

    Email:

    Town:

    Step 2 of 4:
    <form name="step2" id="step2" action="” method=”post”>

    Name:

    Surname:

    Bio:

    Interests:

    Gender:
    Male
    Female

    Year of birth:

    Step 3 of 4
    <form name="step3" id="step3" action="” method=”post”>
    Our Reccomendations

    Step 4 of 4
    <form name="step3" id="step3" action="” method=”post”>

    Congratulations
    Thank You for signing up you will be re directed to the login page where you will be able to sign in

    is this feasible?
    thank you

    VA:F [1.9.22_1171]
    Rating: 0.0/5 (0 votes cast)
    • #142 by Praveen Gowda I V on June 25, 2012 - 11:28 am

      Use jQuery to display one single form in step by step fashion, then you can submit the form in the final step.
      There are many multi step signuo form using jQuery tutorials on the net which will help you.

      VN:F [1.9.22_1171]
      Rating: 0.0/5 (0 votes cast)
      • #143 by Luke on June 25, 2012 - 8:00 pm

        hi mate, i have got it so that each form shows up in the correct sequence using a hidden field in my form and checking the value of that to determin which form is shown.using a switch command but without validation (is there a way i can post php code here as it was all removed im my above post?) it would make more sence if you could see the code in full :)

        i have spent ages on google looking for a decent example but i can only find one which keeps appearing all over the place which is no good :(

        VA:F [1.9.22_1171]
        Rating: 0.0/5 (0 votes cast)
        • #144 by Praveen Gowda I V on June 25, 2012 - 8:46 pm

          Ofcourse you can post php code in the comments, for syntax highlighting, wrap the code in <pre class-"brush:php"></pre> tags.
          Alternatively, contact me at praveen.vvstgy[at]gmail.com and it is better that way.

          VN:F [1.9.22_1171]
          Rating: 0.0/5 (0 votes cast)
          • #145 by Luke on June 26, 2012 - 5:19 pm

            ok thanks mate i will send you an email with my files :) thank you

            VA:F [1.9.22_1171]
            Rating: 0.0/5 (0 votes cast)
  54. #146 by Charlie Lodder on July 2, 2012 - 10:24 pm

    Hi, love this script, have been using it for my custom built website. 2 suggestions though. there is a deprecated funtion “eregi” which should be updated to “pregmatch” and would you also be able to provide a tutorial for adding extra columns in the database for the user and and also adding them to the useredit.php page for example a “website” field. Something along those line. I have been trying for a few days now and can’t seem to get it to update the database once they have edited their account page.

    Kind Regards,

    Charlie Lodder

    VA:F [1.9.22_1171]
    Rating: 5.0/5 (1 vote cast)
    • #147 by Charlie Lodder on July 2, 2012 - 11:33 pm

      don’t worry, I forgot to edit the process.php and got it working now. Again, thanks for the amazing script. 10/10

      VA:F [1.9.22_1171]
      Rating: 0.0/5 (0 votes cast)
    • #149 by Praveen Gowda I V on July 3, 2012 - 9:04 am

      I am working on a complete update to the script adding a lot more features.
      I have mentioned the fix to the eregi error in the comments.
      So very soon you can expect an update with a lot more features which the users have been requesting for a while.

      VN:F [1.9.22_1171]
      Rating: 0.0/5 (0 votes cast)
  55. #150 by memo on July 5, 2012 - 12:13 pm

    buddy there seems to be a problem with the code. for example, I’m a user and I logg in the site. then when I want to view my info, the URL turns to example-site/userinfo.php?user=UserA. the problem is that when I erase “UserA” in the URL and write “Admin”, then the info of the Administrator appears! even when the Admin has logged out!

    how can that security problem get solved?

    VA:F [1.9.22_1171]
    Rating: 5.0/5 (1 vote cast)
    • #151 by Praveen Gowda I V on July 5, 2012 - 12:48 pm

      It is not a security problem, by default it is intended to display the user info to the public.
      If you don’t want to display the user info of users to others, then replace the userinfo.php with the below code

      <?php
      /**
      * UserInfo.php
      *
      * This page is for users to view their account information
      * with a link added for them to edit the information.
      *
      * Please subscribe to our feeds at http://blog.geotitles.com for more such tutorials
      */
      include("include/session.php");
      if(!$session->logged_in)
      {
      header("Location: main.php");
      }
      else
      ?>
      <html>
      <title>Account Info | jQuery, AJAX, PHP, MySQL, javascript, web design tutorials & demos | php login script demo</title>
      <body>
      
      <?
      /* Requested Username error checking */
      $req_user = trim($_GET['user']);
      if(!$req_user || strlen($req_user) == 0 ||
      !eregi("^([0-9a-z])+$", $req_user) ||
      !$database->usernameTaken($req_user)){
      die("Username not registered");
      }
      
      /* Logged in user viewing own account */
      if(strcmp($session->username,$req_user) == 0){
      echo "<h1><img src=\"images/user_info.png\" width=\"32\" height=\"32\">My Account</h1>";
      }
      /* Visitor not viewing own account */
      else{
      echo "<h1>User Info</h1>";
      }
      
      /* Display requested user information */
      $req_user_info = $database->getUserInfo($req_user);
      
      /* Username */
      echo "<b>Username: ".$req_user_info['username']."</b><br>";
      
      /* Email */
      echo "<b>Email:</b> ".$req_user_info['email']."<br>";
      
      /**
      * Note: when you add your own fields to the users table
      * to hold more information, like homepage, location, etc.
      * they can be easily accessed by the user info array.
      *
      * $session->user_info['location']; (for logged in users)
      *
      * ..and for this page,
      *
      * $req_user_info['location']; (for any user)
      */
      
      /* If logged in user viewing own account, give link to edit */
      if(strcmp($session->username,$req_user) == 0){
      echo "<br><a href=\"useredit.php\">Edit Account Information</a><br>";
      }
      
      /* Link back to main */
      echo "<br>Back To [<a href=\"main.php\">Main</a>]<br>";
      
      ?>
      
      </body>
      </html>
      VN:F [1.9.22_1171]
      Rating: 0.0/5 (0 votes cast)
  56. #152 by Caleb Larocque on July 6, 2012 - 12:58 am

    Thanks so much for this awesome php login script. I’ve made the neccessary changes, including changing the encryption from .md5 to hash(“shah512″) where needed (the only change I’ve made). Upon registration, the MySQL database is updated properly, but when I attempt to login on main.php, I’m redirected back to the login screen instead of the “Welcome ……. you are logged in.” screen. The login screen recognizes my username at the bottom of the screen and allows me to access userinfo.php, but that’s it.

    I know both screens reside on main.php and the Welcome screen is defined by the if($session->logged_in) line of code. I’ve struggled with this for a few days and can’t figure out whats wrong. You can see my test page here
    I don’t have the index.php page provided up yet, since I’m still using my original page for my site.

    Thanks so muck in advance for looking into this. I’ve only been working with PHP for about a month, so it’s all very new to me, but I’m beginning to grasp how it all works.

    VA:F [1.9.22_1171]
    Rating: 0.0/5 (0 votes cast)
  57. #155 by Atir on July 10, 2012 - 8:51 am

    Good script but no restrictions for email address therefore all users can register with one email address.
    I have tried admin and two users, these three with the same email address and this script accept them all.

    VA:F [1.9.22_1171]
    Rating: 0.0/5 (0 votes cast)
  58. #156 by Orthodox on July 10, 2012 - 2:41 pm

    Atir for email restriction you can easly edit $session->register() function by adding in email check rutine…


    else if ($database->email_check($subemail)){
    $form->setError($field, "* Email's already exists");
    }

    after that add new function in database.php like this.

    function email_check($email){
    if(!get_magic_quotes_gpc()){
    $email = addslashes($email);
    }
    $q = "SELECT username FROM ".TBL_USERS." WHERE email = '$email'";
    $result = mysql_query($q, $this->connection);
    return (mysql_numrows($result) > 0);
    }

    hope this helps.

    VA:F [1.9.22_1171]
    Rating: 5.0/5 (1 vote cast)
    • #157 by Atir on July 12, 2012 - 6:42 am

      Thank you Orthodox.
      This helped me and now working fine.
      Atir

      VA:F [1.9.22_1171]
      Rating: 0.0/5 (0 votes cast)
    • #158 by avatarum on February 11, 2013 - 10:31 pm

      thanks Orthodox, it really works :D

      VA:F [1.9.22_1171]
      Rating: 0.0/5 (0 votes cast)
      • #159 by suwage23 on March 23, 2013 - 11:51 am

        Hi all, please could you tell me where do i insert this code(s)? So that the email restriction applies. Sorry i am new to PHP :P Many thanks

        VA:F [1.9.22_1171]
        Rating: 0.0/5 (0 votes cast)
        • #160 by Pie2010 on March 26, 2013 - 4:02 am

          You want to insert a code, but what code is it?
          If it is returning a confirmation email to the user downloads the scripts corresponding to the tutorial and follow the instructions.

          How to insert the codes in markup depends on you, if the tutorial is fully operational, I myself have tested it and it works wonders.

          VA:F [1.9.22_1171]
          Rating: 0.0/5 (0 votes cast)
  59. #161 by mrmochajava on July 17, 2012 - 1:45 am

    All I can say is, very nice script. It’s the best I’ve had. Numerous ones before this haven’t and didn’t work, but yours worked for me my first time! May I ask, when is the update coming out?

    VA:F [1.9.22_1171]
    Rating: 0.0/5 (0 votes cast)
    • #162 by Praveen Gowda I V on July 17, 2012 - 3:07 am

      Thanks for your words.
      Update will take atleast four weeks or even more since we are updating one tutorial at a time

      VN:F [1.9.22_1171]
      Rating: 0.0/5 (0 votes cast)
  60. #163 by memo on July 18, 2012 - 3:49 pm

    is there any way for users to have their own images file, so that they only may see their each album?

    VA:F [1.9.22_1171]
    Rating: 0.0/5 (0 votes cast)
  61. #165 by Henrique on July 21, 2012 - 1:46 pm

    Hi Praveen,

    What a fantastic tool this has proven to be. Great to learn a lot of PHP in general, fantastic job.

    I’ve been having some trouble customizing a part of the login process. I would like for users to not be logged out when they log in from another computer or another browser, would that be hard for me to do? I’m developing a website that will be available both on desktop and mobile, and being logged out from desktop everytime a user logs in from mobile will be quite inconvenient.

    I haven’t found which part of the code that relates to this, do you have an idea if this change would be simple?

    Thank you

    VA:F [1.9.22_1171]
    Rating: 0.0/5 (0 votes cast)
    • #166 by Henrique on August 15, 2012 - 7:54 am

      Hey, Praveen did you have a chance to take a look at what I mentioned? It’s ok if that’s not possible with this script, but I’d love to know if so.

      Thanks!

      VA:F [1.9.22_1171]
      Rating: 0.0/5 (0 votes cast)
      • #167 by Praveen Gowda I V on August 15, 2012 - 8:52 am

        It can be possible, but it takes some coding to be done, but I am very busy right now.
        I will make that edit when I find time and let you know, if you are in a hurry, send me an email through the contact form and I will get it done for a small fee.

        VN:F [1.9.22_1171]
        Rating: 0.0/5 (0 votes cast)
  62. #168 by abeldb on July 24, 2012 - 5:52 am

    Hi Praveen!

    I’ts perfect script, works very fine!
    Simple, easy and fast.


    I have a problem with the function sendmail,
    because i want to codified our messages in UTF-8.

    My users are spanish, and in spanish is common use letters like: á, é, ñ, …

    I tried to add ‘$headers’ in file ‘mailer.php’:

    $headers = “MIME-Version: 1.0″ . “\n”;
    $headers .= “Content-type:text/plain;charset=UTF-8″ . “\n”;
    $from = “From: “.EMAIL_FROM_NAME.” “;
    ….
    return mail($email,$subject,$body,$from,$headers);

    But it returns two errors:

    Warning: mail() [function.mail]: SAFE MODE Restriction in effect. The fifth parameter is disabled in SAFE MODE in /usr/home/commuting.es/web/web/area/include/mailer.php on line 54
    << line 54 : return mail($email,$subject,$body,$from,$headers);

    Warning: Cannot modify header information – headers already sent by (output started at /usr/home/commuting.es/web/web/area/include/mailer.php:54) in /usr/home/commuting.es/web/web/area/process.php on line 103

    Can you help me about this problem?
    I want to send messages without errors codification charset.

    VA:F [1.9.22_1171]
    Rating: 0.0/5 (0 votes cast)
    • #169 by abeldb on July 30, 2012 - 6:46 am

      Hi Praven!

      How are you?

      Can you tell me some notes about codification charset when we send registration messages?

      I need help, thanks a lot!

      VA:F [1.9.22_1171]
      Rating: 0.0/5 (0 votes cast)
      • #170 by Praveen Gowda I V on July 30, 2012 - 7:26 am

        I just looked at the code you had left in an earlier comment.
        Since you get the error due to the fifth parameter, since the fifth parameter is not allowed in safe mode since it can be misused.
        so instead use only four parameters, below is an example how:

        $headers = “MIME-Version: 1.0″ . “\n”;
        $headers .= “Content-type:text/plain;charset=UTF-8″ . “\n”;
        $from = “.EMAIL_FROM_NAME.“;
        $headers = "From:" . $from;
        ….
        return mail($email,$subject,$body,$headers);

        I hope this will definitely help you.

        VN:F [1.9.22_1171]
        Rating: 0.0/5 (0 votes cast)
        • #171 by abeldb on July 30, 2012 - 1:38 pm

          Dear Praveen,

          That’s allright!

          Finally I’ve gotten it to work
          sending charset as follows:

          $headers = “MIME-Version: 1.0″ . “\r\n”;
          $headers .= “Content-type: text/plain; charset=\”UTF-8\” ” . “\r\n”;
          $headers .= “Content-Transfer-Encoding: 8bit” . “\r\n”;
          $from = “”.EMAIL_FROM_NAME.””;
          $des = ‘ ‘;
          $headers .= “From: ” . $from . $des ;
          $subject = ” ….

          return mail($email,$subject,$body,$headers);


          Thank you very much for your help.
          I’m really happy.

          VA:F [1.9.22_1171]
          Rating: 0.0/5 (0 votes cast)
          • #172 by Praveen Gowda I V on July 30, 2012 - 3:28 pm

            Hi Abeldb,

            I am glad that I was able to help and you got it to work.
            I am always here to help, do come back if you need any help.

            VN:F [1.9.22_1171]
            Rating: 0.0/5 (0 votes cast)
  63. #173 by Vidzone on July 26, 2012 - 1:22 am

    Hi admin i get this error, please help I run on localhost using xampp

    Deprecated: Function eregi() is deprecated in C:xampphtdocsxampplogreguserinfo.php on line 21

    waiting your reply.
    thanks

    VA:F [1.9.22_1171]
    Rating: 0.0/5 (0 votes cast)
  64. #175 by fp6 on August 3, 2012 - 8:44 am

    Hi, This is a great script. However I would like an email sent to me each time an email is sent to a user. I tried adding BCC to mailer.php but couldn’t get it to work. How can I BCC myself. Thanks.

    VA:F [1.9.22_1171]
    Rating: 0.0/5 (0 votes cast)
    • #176 by Praveen Gowda I V on August 9, 2012 - 2:07 pm

      If you forward every mail sent to a user to your address as well, then you will be receiving their passwords to their account, are you sure that you really want to do that ?

      VN:F [1.9.22_1171]
      Rating: 0.0/5 (0 votes cast)
      • #177 by fp6 on August 12, 2012 - 4:37 pm

        I don’t necessarily need their passwords, but what I would like is a notification of a pending registration so I can accept or reject the request. As it now, I need to check each day to see if there are any pending registrations.

        VA:F [1.9.22_1171]
        Rating: 0.0/5 (0 votes cast)
        • #178 by fp6 on September 6, 2012 - 10:32 am

          Deleted from my website due to no response…

          VA:F [1.9.22_1171]
          Rating: 0.0/5 (0 votes cast)
          • #179 by Praveen Gowda I V on September 6, 2012 - 12:14 pm

            you can send email to multiple recipients by specifying a comma separated list in the to parameter.
            so just having your email address next to the user’s email separated by en comma will make sure that a copy can be sent to your email address.
            You can always refer PHP manual page for all the other options available.

            With so many emails regarding the tutorials I receive, it is possible that I may forget some old questions.
            After redesigning I am planning a support forum to make it easier to solve questions raised by users still that I would please request everyone’s patience.

            VN:F [1.9.22_1171]
            Rating: 0.0/5 (0 votes cast)
  65. #180 by Terence Kou on August 20, 2012 - 4:18 am

    This is a good script…and I have a question.

    Warning: session_start() [function.session-start]: Cannot send session cache limiter – headers already sent (output started at /home/www1/www.easc-asia.com/htdocs/tgcyber/login/main.php:2) in /home/www1/www.easc-asia.com/htdocs/tgcyber/login/include/session.php on line 46

    how to fix it???

    Big Thanks.

    VA:F [1.9.22_1171]
    Rating: 0.0/5 (0 votes cast)
  66. #181 by An on August 25, 2012 - 4:59 pm

    It doesn’t let me open files! It says windows cant open this file

    VA:F [1.9.22_1171]
    Rating: 0.0/5 (0 votes cast)
  67. #182 by yati on August 30, 2012 - 5:24 am

    This is a brilliant script! I LOVE IT!

    But why i can’t use your script?
    Do I have to get function in my server?
    Please. Help Me! I am in my system project.
    Due date is 24.9.2012. I need to finish it quickly.

    VA:F [1.9.22_1171]
    Rating: 0.0/5 (0 votes cast)
    • #183 by Praveen Gowda I V on August 30, 2012 - 6:58 am

      Why can’t you use it, what problems do you get?
      If you have too many problems installing the script then leave me a mail through the contact form and I will get the script working on your server by installing it myself.

      VN:F [1.9.22_1171]
      Rating: 0.0/5 (0 votes cast)
      • #184 by yati on August 30, 2012 - 8:25 am

        No. Not about installing. I don’t understand why it display all coding when it goes to forgotpass.php. I had change in php.ini

        short_open_tag
        ; Default Value: Off

        It is other short_open_tag?

        VA:F [1.9.22_1171]
        Rating: 0.0/5 (0 votes cast)
  68. #186 by yati on August 30, 2012 - 5:26 am

    Other than that, I use email as username to recognize in forgotpass.php.
    Can you help me with this?

    VA:F [1.9.22_1171]
    Rating: 0.0/5 (0 votes cast)
  69. #187 by vijayamani on September 10, 2012 - 2:35 am

    Thanks for the awesome code.

    I have problem. I am using index.php at the root folder for login. In the following code
    I want to redirect to dnutemp.php in /move directory, it waits for process.php and does not
    get redirected.

    if($session->isUser1()){
    header(“Location: /move/dnutemp.php”);
    }

    But, if I copy dnutemp.php to root folder & use the following code,

    if($session->isUser1()){
    header(“Location: dnutemp.php”);
    }
    it works well. Why redirection is not done for file inside a subdirectory?
    Please help.

    VA:F [1.9.22_1171]
    Rating: 0.0/5 (0 votes cast)
  70. #188 by angelrulez7 on September 11, 2012 - 11:10 pm

    Nice. I use this for my site, 3DSRun.

    VA:F [1.9.22_1171]
    Rating: 0.0/5 (0 votes cast)
  71. #189 by pradeep sahane on September 19, 2012 - 6:18 am

    hi buddy,
    i am getting this error,how do i fix it?
    Warning: mail(): SMTP server response: 530 5.7.0 Must issue a STARTTLS command first. wn4sm1637963pbc.55 in c:\program files (x86)\easyphp1-8\www\forgotp\include\mailer.php on line 78

    VA:F [1.9.22_1171]
    Rating: 0.0/5 (0 votes cast)
  72. #190 by izzat ali on September 20, 2012 - 8:27 am

    I am very thankful to you that what I was looking for, i found it here in this page. I did upload the script at my server provider and it works well. Thank you very much.

    VA:F [1.9.22_1171]
    Rating: 0.0/5 (0 votes cast)
  73. #191 by David on September 22, 2012 - 10:30 pm

    I was trying to weed through all of the comments on here, so I don’t know if you answered it yet but how do I add additonal fields to the registration form and database like Name, etc. and I had another question that I quickly forgot…thanks for all you do though! Great scripts!

    VA:F [1.9.22_1171]
    Rating: 0.0/5 (0 votes cast)
  74. #192 by Eric on September 24, 2012 - 11:08 am

    What’s the best way to ad more pages that are protected at both levels? Can I copy the code lets say fro the userinfo.php page then adjust what’s echoed based on whether it’s guest, reg. user or admin?

    VA:F [1.9.22_1171]
    Rating: 0.0/5 (0 votes cast)
    • #193 by David on September 26, 2012 - 12:47 am

      I did something like that. I included the session php code at the top of every page I want to check for user log-in status:

      Then where I want the secured content, I add the:

      logged_in){
      echo "Home";
      echo "Logout";
      echo "username\">My Account";
      echo "Edit Account";
      echo "Member's Area";
      echo "Forum";
      if($session->isAdmin()){
      echo "Admin Center";
      }
      }
      else{
      echo "Home";
      echo "Get A FREE Account!";
      }
      ?>

      So I would assume the level would be added here since there is the basic user level controls for a regular user as well as the if the session is for an administrator. I’ll play with it more too and see if I can post anything relevant to try to help you out in case responses from the guy who actually knows are delayed haha.

      VA:F [1.9.22_1171]
      Rating: 5.0/5 (1 vote cast)
      • #194 by David on September 26, 2012 - 12:48 am

        …hmm, doesn’t look like this site posted my whole reply…cheap.

        VA:F [1.9.22_1171]
        Rating: 0.0/5 (0 votes cast)
      • #196 by Eric on September 30, 2012 - 6:13 pm

        Thanks for the response. I finally figured it out after really digging into the code. Here’s one version.
        userlevel == 0){

        include(“error.php”);
        exit;

        }
        else
        if($session->userlevel > 0){
        }
        ?>

        I also used a referrer on one page because it is being loaded by a script that’s on a protected page so there’s no way for a user to see the page unless they click the link and come from the protected page.

        VA:F [1.9.22_1171]
        Rating: 0.0/5 (0 votes cast)
    • #197 by Praveen Gowda I V on September 26, 2012 - 8:05 am

      here is the code to make every page protected.

      < ?php

      //inlcude the session files
      include("include/session.php");

      //redirect the user if he is
      if(!$session->logged_in)
      {
      header("Location: main.php");
      }
      else
      {
      //here goes the page that needs to be displayed to logged in users
      }
      ?>

      VN:F [1.9.22_1171]
      Rating: 0.0/5 (0 votes cast)
      • #198 by Eric on September 30, 2012 - 6:40 pm

        I pretty much did this for the register page because I was looking to only allow the admin to add users.
        if($session->userlevel == 0){
        echo “Your not allowed to register yourself”;
        echo “We’re sorry $session->username, but the webmaster needs to assign you login credentials.”
        .”Back to login”;
        exit;
        }

        VA:F [1.9.22_1171]
        Rating: 0.0/5 (0 votes cast)
        • #199 by Praveen Gowda I V on October 1, 2012 - 5:37 am

          You need to format the code properly before posting orelse it won’t display properly.

          VN:F [1.9.22_1171]
          Rating: 0.0/5 (0 votes cast)
          • #200 by Eric on October 2, 2012 - 9:37 am

            Sorry about that. I was wondering about code tags but I didn’t see anything telling to use them and I wasn’t able to change the comment after submission.:)

            VA:F [1.9.22_1171]
            Rating: 0.0/5 (0 votes cast)
          • #201 by Praveen Gowda I V on October 2, 2012 - 12:15 pm

            Even I am not able to correct it since it has been removed during comment submission.
            also you can use
            if(!$session->isAdmin)
            {
            echo “Your not allowed to register yourself”;
            echo “We’re sorry $session->username, but the webmaster needs to assign you login credentials.”
            }
            else
            {
            //display the page for admins here
            }

            VN:F [1.9.22_1171]
            Rating: 0.0/5 (0 votes cast)
  75. #202 by fandy on September 27, 2012 - 12:36 am

    Thanks for the awesome script. I just need to know what “last active” mean on the admin page. Its just show number like “1348723314″. How to convert the number to the actual time?

    VA:F [1.9.22_1171]
    Rating: 0.0/5 (0 votes cast)
    • #203 by fandy on September 27, 2012 - 11:28 pm

      ok.. I alredy got the script..
      admin.php

      for($i=0; $isetTimestamp($time);
      $ts = $date->format(‘Y-m-d H:i:s’) . “\n”;
      echo “$uname$ulevel$email$ts\n”;
      }

      its work on mine.
      thanks

      VA:F [1.9.22_1171]
      Rating: 0.0/5 (0 votes cast)
      • #204 by Eric on September 30, 2012 - 6:27 pm

        I was just starting to work on that problem when I saw your post.
        Where did you place the time stamp code format script to make it work with the existing setup?:)

        VA:F [1.9.22_1171]
        Rating: 0.0/5 (0 votes cast)
        • #205 by fandy on October 3, 2012 - 3:54 am

          admin.php

             for($i=0; $i<$num_rows; $i++){
                $uname  = mysql_result($result,$i,"username");
                $ulevel = mysql_result($result,$i,"userlevel");
                $email  = mysql_result($result,$i,"email");
                $time   = mysql_result($result,$i,"timestamp");
          	  $date = new DateTime();
                $date->setTimestamp($time);
          	  $ts = $date->format('Y-m-d H:i:s') . "\n";
          	  
                echo "<tr><td>$uname</td><td>$ulevel</td><td>$email</td><td>$ts</td></tr>\n";
             }
          
          VA:F [1.9.22_1171]
          Rating: 0.0/5 (0 votes cast)
          • #206 by Eric on October 5, 2012 - 9:26 pm

            The code breaks my page and nothing below the user table headers shows up.
            Here’s the error log.
            Call to undefined method DateTime::setTimestamp()

            VA:F [1.9.22_1171]
            Rating: 0.0/5 (0 votes cast)
  76. #207 by Eric on October 6, 2012 - 7:00 am

    I ended up getting it to work with less code.

    for($i=0; $i<$num_rows; $i++){
          $uname  = mysql_result($result,$i,"username");
          $ulevel = mysql_result($result,$i,"userlevel");
          $email  = mysql_result($result,$i,"email");
          $time   = mysql_result($result,$i,"timestamp");
          $ts = date("Y-m-d H:i:s", "$time");
          
    	  echo "<tr><td>$uname</td><td>$ulevel</td><td>$email</td><td>$ts</td></tr>\n"; 
       }
    
    VA:F [1.9.22_1171]
    Rating: 0.0/5 (0 votes cast)
  77. #208 by kinger2012 on October 17, 2012 - 10:08 pm

    Hello, can this login get incorporated into the site to that the users would register from the home page? and can I make the login script use my template in all of its pages? Please Help me.
    I am looking to make it, so that when someone registers he would have an account with something like points that he can purchase via real money if you know anything about this please tell me. Thank you and sorry for bad English.

    VA:F [1.9.22_1171]
    Rating: 0.0/5 (0 votes cast)
  78. #209 by conor on October 22, 2012 - 7:15 pm

    Hey,the script works cool but the registered said registation failed?
    I’m sure the table is there.
    For now I have to insert into db manually.
    Thanks
    -Conor

    VA:F [1.9.22_1171]
    Rating: 0.0/5 (0 votes cast)
    • #210 by Praveen Gowda I V on October 22, 2012 - 10:21 pm

      There will be something wrong with the database.
      Check if you have entered the right username, password and database name in constants.php file.

      VN:F [1.9.22_1171]
      Rating: 0.0/5 (0 votes cast)
  79. #211 by Jack on December 20, 2012 - 10:24 pm

    When is version 2 coming? I was told at the beginning of November…

    VA:F [1.9.22_1171]
    Rating: 0.0/5 (0 votes cast)
    • #212 by Praveen Gowda I V on December 21, 2012 - 12:25 am

      It is kinda ready but still not complete to go online since I am occupied with client work but if you are looking for certain features, just contact me through the contact page and I will send you the code.

      VN:F [1.9.22_1171]
      Rating: 0.0/5 (0 votes cast)
  80. #213 by akp on January 6, 2013 - 10:44 am

    i got domain on shared hosting
    i uploaded your code on live server
    I can access all features from my domain, its working fine
    but there are two things are not working
    ====Mail is not working=====
    1. User is not getting email notification – when he register
    in constants.php is set to true
    define(“EMAIL_WELCOME”, true);
    2. User is not getting about new password – if he use forgot password option

    VA:F [1.9.22_1171]
    Rating: 0.0/5 (0 votes cast)
    • #214 by akp on January 6, 2013 - 11:36 am

      sorry, its working !

      VA:F [1.9.22_1171]
      Rating: 0.0/5 (0 votes cast)
    • #215 by Praveen Gowda I V on January 7, 2013 - 1:42 am

      The code is just fine it is just you can’t get it to work

      VN:F [1.9.22_1171]
      Rating: 0.0/5 (0 votes cast)
  81. #216 by matt on January 9, 2013 - 2:45 pm

    hi, i would like to allow users to keep a session open on one pc and be able to login in a different PC using the same credentials without destroying their original session, could you advise the best way to do this please.

    Thanks

    VA:F [1.9.22_1171]
    Rating: 0.0/5 (0 votes cast)
    • #217 by Praveen Gowda I V on February 5, 2013 - 7:31 am

      That was not the original purpose of this script.
      If you want to implement that, here is the idea.
      we use userid field to check if a user is logged in or not, so to implement multiple login remove the userid field from users table and create a userid table so that you can store multiple userid for a given username.
      Still this will require a little more work than usual.

      VN:F [1.9.22_1171]
      Rating: 0.0/5 (0 votes cast)
  82. #218 by mona on January 20, 2013 - 8:23 pm

    hii praven, nice tutorial.. i just wanna ask , how to add more features on user and admin have had login like info.php . there were link my account and edit account on index.php right. where script should i change or i add, thank.

    i’m looking forward 4 u’re replay

    best regards,

    VA:F [1.9.22_1171]
    Rating: 0.0/5 (0 votes cast)
    • #219 by Praveen Gowda I V on February 5, 2013 - 7:24 am

      Don’t bother about index.php just add it to main.php, you can delete index.php and the code will work just fine still.

      VN:F [1.9.22_1171]
      Rating: 0.0/5 (0 votes cast)
  83. #220 by dave on January 28, 2013 - 10:46 am

    Hi,

    Excellent login script by the way, I would like to know how the guests tag works, it seems that you are an active guest if you are a logged out user. Main.php picks up active user number fine, however there is never any entry written to the blog_active_guests database field! Could you explain the purpose of this field please?

    Thanks

    Dave

    VA:F [1.9.22_1171]
    Rating: 0.0/5 (0 votes cast)
    • #221 by Praveen Gowda I V on February 5, 2013 - 7:22 am

      Data is added to active guests table, but will be removed later when you are no longer browsing the site.

      VN:F [1.9.22_1171]
      Rating: 0.0/5 (0 votes cast)
  84. #222 by Anna on February 2, 2013 - 8:39 pm

    Hi Praven, how can I add a cc field in the mailer.php page? I would like to be notified by email every time an user signs-up to my website.
    Thank you,
    Anna

    VA:F [1.9.22_1171]
    Rating: 5.0/5 (1 vote cast)
    • #223 by Praveen Gowda I V on February 5, 2013 - 6:57 am

      You can add it like below.

      $from = "From: ".EMAIL_FROM_NAME." < ".EMAIL_FROM_ADDR.">";
      $from .= 'Cc: whatever@example.com' . "\r\n";
      $headers .= 'Bcc: whatever@example.com' . "\r\n";

      // Mail it
      return mail($email,$subject,$body,$from);

      Using this you can add cc and bcc, hope it helps.

      VN:F [1.9.22_1171]
      Rating: 0.0/5 (0 votes cast)
  85. #224 by Joseph on February 3, 2013 - 9:44 am

    Very nice and useful script. Do you code facebook scripts too? I need one.

    VA:F [1.9.22_1171]
    Rating: 5.0/5 (1 vote cast)
  86. #226 by chris on February 24, 2013 - 3:07 pm

    Hi does this login system work properly with no errors

    VA:F [1.9.22_1171]
    Rating: 0.0/5 (0 votes cast)
    • #227 by Praveen Gowda I V on February 25, 2013 - 4:52 am

      It works absolutely perfect with no errors out of the box.
      If you need to add more features, you would have to edit the source code.

      VN:F [1.9.22_1171]
      Rating: 0.0/5 (0 votes cast)
  87. #228 by Leek on February 25, 2013 - 1:52 pm

    I have uploaded all the files- so that I can test will it work on my website- that were in the downloaded map. But when I try to acces index.php it is not working it gives me the following error code: Access denied for user ‘database usernam’@'web111.local’ (using password: YES)

    I just type my sitename followed by /index.php

    Any ideas?

    VA:F [1.9.22_1171]
    Rating: 0.0/5 (0 votes cast)
    • #229 by Praveen Gowda I V on February 26, 2013 - 10:13 am

      Database credentials in constantta.php file is wrong, please recheck.

      VN:F [1.9.22_1171]
      Rating: 1.0/5 (1 vote cast)
  88. #230 by gordon falvey on February 27, 2013 - 9:31 am

    Hey Praveen,
    Great script. I want to use it for a web site im buiding but need a few extra fields in the form but when i tried to edit the scripts my self the data is showing up in the wrong fields in my data base.
    would you be able to sort this for me.

    VA:F [1.9.22_1171]
    Rating: 0.0/5 (0 votes cast)
  89. #231 by Ali Hassan Rizvi on March 5, 2013 - 5:23 am

    its working fine but can you please guide how can we add a confirm password field during registeration.
    thanks in advance

    VA:F [1.9.22_1171]
    Rating: 5.0/5 (2 votes cast)
    • #232 by William on March 10, 2013 - 1:18 am

      I got it to work, but you will need to modify several of the core script files. On my end, you will only be using this in two specific places: registration of new users and when changing passwords.

      This is what I did:

      1. Changes in sessions.php

      You must update the register() function (~ line 240) to include the verification password parameter (in my case, I used $subvpass):

      function register($subuser, $subpass, $subvpass, $subemail){

      Then, in the same function, check if the verify password matches the password:

      /* Check if password and verify password match */
      else if($subpass != $subvpass){
      $form->setError($vfield, “* Passwords do not match”);
      }

      Now look for the editAccount() function at ~ line 347:

      function editAccount($subcurpass, $subnewpass, $subnewvpass, $subemail){

      Then, at around line 369:

      /* New Password error checking */
      $field = “newpass”; //Use field name for new password
      $vfield = “verpass”; //Field name for verify password
      /* Spruce up password and check length*/
      $subpass = stripslashes($subnewpass);
      $subvpass = stripslashes($subnewvpass);
      if(strlen($subnewpass) setError($field, “* New Password too short”);
      }
      /* Check if password is not alphanumeric */
      else if(!preg_match(“/^([0-9a-z])+$/i”, ($subnewpass = trim($subnewpass)))){
      $form->setError($field, “* New Password not alphanumeric”);
      }
      /* Check if password and verify password match */
      else if($subpass != $subvpass){
      $form->setError($vfield, “* Passwords do not match”);
      }

      2. Changes in register.php

      Here I did a bit of reformatting the original script code, using instead of the original tabular layout. But that’s just personal preference. However, using Praveen’s original script layout, add the following after the Password input :

      Verify Password:<input type="password" name="verpass" maxlength="30" value="value(“verpass”); ?>”>error(“verpass”); ?>

      In my layout, it looks like this:

      Verify password:

      <input type="password" name="verpass" value="value(“verpass”); ?>” /><?php echo "”.$form->error(“verpass”); ?>

      3. Changes in process.php

      Change the procRegister() function (~ line 91):

      /* Registration attempt */
      $retval = $session->register($_POST['user'], $_POST['pass'], $_POST['verpass'], $_POST['email']);

      Change the procEditAccount() function (~ line 178):

      /* Account edit attempt */
      $retval = $session->editAccount($_POST['curpass'], $_POST['newpass'], $_POST['verpass'], $_POST['email']);

      4. Changes in useredit.php

      Add:

      Verify New Password:
      <input type="password" name="verpass" maxlength="30" value="
      value(“verpass”); ?>”>
      error(“verpass”); ?>

      —————————–
      And that’s it. That worked for me. I hope it works for you, too. Unless, of course, Praveen has a better and more straightforward way of including a confirm password field during registration/editing.

      VA:F [1.9.22_1171]
      Rating: 5.0/5 (1 vote cast)
      • #233 by William on March 10, 2013 - 1:23 am

        I left something out. In function register() also change the following:

        /* Password error checking */
        $field = “pass”; //Use field name for password
        $vfield = “verpass”; //Use vfield for verify password

        VA:F [1.9.22_1171]
        Rating: 0.0/5 (0 votes cast)
  90. #234 by Janaranjan sahoo on March 9, 2013 - 2:29 am

    Hi Praveen,
    Thanks for this nice script. I want to use this for my website. But I can not download this script through the link given here. Can you Please help me where to find this script to download or it will be very kind if you send me in my email address. Thanks in advance…

    VA:F [1.9.22_1171]
    Rating: 0.0/5 (0 votes cast)
    • #235 by Praveen Gowda I V on March 9, 2013 - 4:16 am

      The download is working perfectly, which link are you trying?

      VN:F [1.9.22_1171]
      Rating: 0.0/5 (0 votes cast)
      • #236 by Janaranjan sahoo on March 9, 2013 - 5:52 am

        The download link given here in this script. After clicking here, this is showing the following error in the browser ;
        Error 103 (net::ERR_CONNECTION_ABORTED): Unknown error.

        VA:F [1.9.22_1171]
        Rating: 0.0/5 (0 votes cast)
  91. #238 by William on March 9, 2013 - 3:21 pm

    I just started using this script and am happy to say that it suits my immediate needs. I am also happy that it is highly configurable and can be easily styled with CSS. However, I am unable to “logout”. Clicking logout keeps taking me to main.php and shows me as logged in. Even going back to index.php shows me as logged in. What could be causing this? Thanks again!

    VA:F [1.9.22_1171]
    Rating: 0.0/5 (0 votes cast)
  92. #239 by William on March 9, 2013 - 4:44 pm

    I figured out what happened. When redistributing the script files into my existing folder structure, I forgot to rename include/sessions.php to includes/sessions.php.

    VA:F [1.9.22_1171]
    Rating: 0.0/5 (0 votes cast)
  93. #241 by Palash on March 13, 2013 - 6:01 am

    I searched a lot but i cannot find an Admin Center in the Admin’s Demo.

    VA:F [1.9.22_1171]
    Rating: 5.0/5 (1 vote cast)
    • #242 by Praveen Gowda I V on March 13, 2013 - 6:19 am

      Someone has changed the userlevel of Admin user, please try now, I have corrected it.

      VN:F [1.9.22_1171]
      Rating: 0.0/5 (0 votes cast)
  94. #243 by Pie2010 on March 21, 2013 - 5:13 pm

    P.S: Good Everning (Sorry My English is not good but i try to explicite my wish ! If somebody speak German and french, it is vera fine for me.)

    So i’m new here and i try to create my own website, but i finally find this tutorial very very interessant and very very good.

    I have any Problems with the main.php

    VA:F [1.9.22_1171]
    Rating: 5.0/5 (1 vote cast)
    • #244 by Praveen Gowda I V on March 22, 2013 - 6:39 am

      Please let us know the problems you are facing and we will be happy to help you with it.

      VN:F [1.9.22_1171]
      Rating: 0.0/5 (0 votes cast)
      • #245 by Pie2010 on March 22, 2013 - 5:40 pm

        A question: How do it to insert a picture or code on this forum.

        I would like to insert a picture or code that you can finally see where my problem with the file main.php when I do the test.

        . In fact when I log in with an account and password, I see my account links displayed below without allowing me to view, modify or disconnect me as the demo. But I did not modify the source code downloaded if it is not that create a database and import the tables as indicated, and these few parameters ficiers constants.php namely:

        define (“db_server”, “localhost” );
        define (“DB_USER”, “root”) ;/ / enter your database username
        define (“DB_PASS”, “blogdatabase”) ;/ / database password
        define (‘DB_NAME’, ‘blog’) ;/ / database name.

        Thank you for your Answers

        VA:F [1.9.22_1171]
        Rating: 0.0/5 (0 votes cast)
  95. #246 by Shane on March 27, 2013 - 1:17 pm

    when do you think version 2.0 will be available for download?

    VA:F [1.9.22_1171]
    Rating: 0.0/5 (0 votes cast)
    • #247 by Praveen Gowda I V on March 28, 2013 - 5:50 am

      It is almost ready, but I don’t wanna release until the redesign, just let me know what feature you are looking after and I will send it to you.

      VN:F [1.9.22_1171]
      Rating: 0.0/5 (0 votes cast)
  96. #248 by mona on March 27, 2013 - 10:40 pm

    how to create delete user without typing the username, means just click it. like:

    deleteUser['name']‘>Delete User

    i tried much time but has not work.

    would you help me , please.

    VA:F [1.9.22_1171]
    Rating: 0.0/5 (0 votes cast)
  97. #249 by haroldas on April 4, 2013 - 7:32 am

    hello, can you help me. i need to registration add input with user Country. But in countries field let me choose with jquery autocemplete from database table list. please help

    VA:F [1.9.22_1171]
    Rating: 0.0/5 (0 votes cast)
  98. #250 by Ryan on April 4, 2013 - 5:22 pm

    Hello,

    Thank you for the GREAT script!
    But i saw you used the mysql codes and not the mysqli codes.
    Are you going to update the scripts or do I have to do it myself?
    Can you tell me how to do this / help me / do this for me?

    Thank you very much!

    VA:F [1.9.22_1171]
    Rating: 0.0/5 (0 votes cast)
  99. #252 by Eric on April 6, 2013 - 12:43 pm

    I’m using your script and can’t get the email to send to a newly registered user. The option is set true on the constants.php. The email forgot password send new password function works great. Can you give me an idea of what to look for that may be tripping it up. I’m using the fname and lname custom script that you posted. I also add a cname. All of the new users info gets added to the database but there’s no email.

    VA:F [1.9.22_1171]
    Rating: 0.0/5 (0 votes cast)
    • #253 by Praveen Gowda I V on April 6, 2013 - 1:30 pm

      I am not sure since it has been a long time since I looked at the modified script, but if you can send me the FTP details of the server where you have installed the script, using the contact page, I can have a look at it.

      VN:F [1.9.22_1171]
      Rating: 0.0/5 (0 votes cast)
  100. #254 by sukimin on April 19, 2013 - 2:39 am

    when i add column to table ‘blog_user’ the registration no longer works..
    what i want to do is after a user log in ,he can see his information like

    Name : xxxxxxx
    Staff no : xxxxxx
    Branch : xxxxxx
    Location : xxxxxxx

    VA:F [1.9.22_1171]
    Rating: 0.0/5 (0 votes cast)
  101. #255 by zzzzz on April 20, 2013 - 6:13 am

    how to logout the page

    VA:F [1.9.22_1171]
    Rating: 0.0/5 (0 votes cast)
  102. #257 by torlee on April 24, 2013 - 1:52 pm

    Thanks so much for sharing this powerful script! I’ve been tinkering with the login as I need it to only allow one user account at at time and display an error if the user is already logged in. Do you have code available for that? It seems like it would be in the session.php page. Thanks again!

    VA:F [1.9.22_1171]
    Rating: 0.0/5 (0 votes cast)
  103. #258 by Blaz on April 28, 2013 - 6:25 am

    Hi there,

    Thanks for this great script is by far the best i’ve found on the net…
    I have some questions though if anyone can answer.

    1. I installed the update script and everything was working fine. I than added the stuart update for email verification and it works but I have problems to log off once the user is logged in. If I try to go on process.php I get redirected to main.php and I can’t get out of the loop. I also can’t find a way to enter the admin page which before I could.

    2. I installed also the update PHP-login-script with additional First name and Last name fields in register.php. I changed also the files: database.php, userinfo.php, register.php, process.php. When I enter the data I get 3 error(s) found; *Username not entered, *Password not entered, *Email not entered

    If I can fix those problems I will definitely use this script on my page.
    Praveen my suggestion is that you add also the password-confirmation field on registration and the checkbox option to email newsletter or weekly news or something like that and also the human verification option when registering.

    Blaž

    VA:F [1.9.22_1171]
    Rating: 0.0/5 (0 votes cast)

Leave a Reply

%d bloggers like this: