PHP and MySQL login with remember me checkbox

Posted on 2005-02-28
Medium Priority
Last Modified: 2013-12-13
Hi all,

I want to put a secure login on my web site.

I would like to use PHP and MySQL to do this.

A simple login with a checkbox option so i have the option to stay logged in.

How do i do this?


Question by:nikkitrent
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3

Accepted Solution

sangeetha earned 375 total points
ID: 13422367

Author Comment

ID: 13422517
It looks like the kind of thing im after....only i dont quite follow it.

i am new to all this so bare with me. It seems t me that the link describes in great detail how to use a "remember me" feature. And i have to say i got a bit lost.

what about the actual login?


Author Comment

ID: 13423084
this is all i have so far.....

<title>Login page</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">


<form action="" method="post" name="login_form" id="login_form">
  <p align="left">Username
    <input name="username" type="text" id="username">
  <p align="left">Password
    <input name="password" type="password" id="password">
  <p align="left">
    <input type="submit" name="Submit" value="Submit">
  <p align="left">Remember Me
    <input name="rememberme" type="checkbox" id="rememberme" value="checkbox">


Author Comment

ID: 13423229
oh and i use mysql control centre to access my hosts mysql databses.

I have created a mysql database called "userlogin". (i know how original)

I have one table called "userlogintable"

in this table i have the fields:

userid (autoincrement, int, primarykey)
username (varchar)
password (varchar)

Whats my next step?


LVL 32

Expert Comment

ID: 13426452
Do you have your login script or no ?

If not, try to integrate a login script ( this would be nice : http://www.free2code.net/plugins/articles/read.php?id=99 , you have to regsiter first, login and then append the URL )  with the link posted by sangeetha.

Featured Post

WordPress Tutorial 3: Plugins, Themes, and Widgets

The three most common changes you will make to your website involve the look (themes), the functionality (plugins), and modular elements (widgets).

In this article we will briefly define each again, and give you directions on how to install them.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I imagine that there are some, like me, who require a way of getting currency exchange rates for implementation in web project from time to time, so I thought I would share a solution that I have developed for this purpose. It turns out that Yaho…
Developers of all skill levels should learn to use current best practices when developing websites. However many developers, new and old, fall into the trap of using deprecated features because this is what so many tutorials and books tell them to u…
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
Suggested Courses

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question