473,320 Members | 2,035 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Login script for php

I'm a VERY basic webmeister for a non-profit group and need to password
protect an area. How does that work? Is there some boilerplate script
I can drop in?

Aug 14 '06 #1
3 1156
If you want to do it tourself you are better off using a database to store
the username and password. Then use a simple php script that reads that info
and compares it with what is read from the form. Try using the encryption
features of php.

The devshed page at
http://www.devshed.com/c/a/PHP/Creat...-Login-Script/
has a pretty good example of how to do this.

<da****@ev1.netwrote in message
news:11**********************@p79g2000cwp.googlegr oups.com...
I'm a VERY basic webmeister for a non-profit group and need to password
protect an area. How does that work? Is there some boilerplate script
I can drop in?

Aug 14 '06 #2
On or about 8/14/2006 12:56 PM, it came to pass that Binod Pant wrote:
If you want to do it tourself you are better off using a database to store
the username and password. Then use a simple php script that reads that info
and compares it with what is read from the form. Try using the encryption
features of php.

The devshed page at
http://www.devshed.com/c/a/PHP/Creat...-Login-Script/
has a pretty good example of how to do this.

<da****@ev1.netwrote in message
news:11**********************@p79g2000cwp.googlegr oups.com...
>I'm a VERY basic webmeister for a non-profit group and need to password
protect an area. How does that work? Is there some boilerplate script
I can drop in?

Those scripts are all well and good, but don't forget the periphery
that's also assumed to be available:
Script for "root admin" to add, maintain and delete
User signup
Forgot my password
Forgot my userid

not to forget about hackers attempting to break in and do some SQL
injection.

Suggest looking at some PHP classes that have this all built in.
Aug 14 '06 #3
da****@ev1.net wrote:
I'm a VERY basic webmeister for a non-profit group and need to password
protect an area. How does that work? Is there some boilerplate script
I can drop in?
I just did that. Like you I am very basic.

Everything I needed was available thru my server which was EV1.
Aug 14 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: koolyio | last post by:
Hey, could you please tell me what is wrong with my login script. I just started learning php. CODE: login.php <? session_start(); header("Cache-Control: private"); ?>
0
by: John Meyer | last post by:
index: <%@ Page Language="VB" ContentType="text/html" ResponseEncoding="iso-8859-1" %> <%@ Import Namespace="System.Data" %> <%@ Import Namespace="System.Data.OleDb" %> <!DOCTYPE html PUBLIC...
1
by: pj | last post by:
I'm trying to redirect users to another page after they Authenticate with the ASP.NET login controls. The user is able to login, but I can't get the response.redirect to work. Can anyone help? ...
3
by: bull1099 | last post by:
I designed a simple site which has a login for users to access their account page. When i had my files uploaded on a terrible hosting service site, my website I designed was fully functional. I moved...
0
by: kang jia | last post by:
hi i am currently learning Django framework and i have to do a login page at the moment. i have used the code like following: from django.contrib.auth import authenticate, login def...
14
victorduwon
by: victorduwon | last post by:
Hi guys and gals, I am using javascript to autologin to my google analytics account via a hyperlink. This is what the text looks like this <?xml version="1.0" encoding="utf-8"?>...
3
by: satishknight | last post by:
Hi, Can some one tell me how to change the validation sequence for the code pasted below, actually what I want it when any one enters the wrong login information (already registered users) then it...
10
by: DavidPr | last post by:
When I logout as one user and log in under a different user, it opens with the last user's information. User 1 - Unsername: Davey Jones User 2 - Unsername: David Smith I log out from Davey...
9
by: adweaver | last post by:
Hello All, I'm new to the world of php. I've just had a site designed for me by a company, and I'm now trying to manage and grow it, so it will suit my needs. The site was built in a folder...
21
by: tvnaidu | last post by:
This is the Java script I am using fo rlogin page, but cursor not pointing to login box, any idea how can I point cursor to login box when this page loaded?. here admin login take to control page and...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.