• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 298
  • Last Modified:

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
0
nikkitrent
Asked:
nikkitrent
  • 3
1 Solution
 
sangeethaCommented:
0
 
nikkitrentAuthor Commented:
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
0
 
nikkitrentAuthor Commented:
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
0
 
nikkitrentAuthor Commented:
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


0
 
ldbkuttyCommented:
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.
0

Featured Post

Receive 1:1 tech help

Solve your biggest tech problems alongside global tech experts with 1:1 help.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now