Link to home
Start Free TrialLog in
Avatar of nikkitrent
nikkitrent

asked on

PHP and MySQL login with remember me checkbox

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?


Regards

nikki
ASKER CERTIFIED SOLUTION
Avatar of sangeetha
sangeetha

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of nikkitrent
nikkitrent

ASKER

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?


nikki
this is all i have so far.....

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

<body>


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



nikki
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?

nikki


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.