471,046 Members | 1,296 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,046 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 1070
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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by koolyio | last post: by
reply views Thread by John Meyer | last post: by
1 post views Thread by pj | last post: by
3 posts views Thread by bull1099 | last post: by
reply views Thread by kang jia | last post: by
10 posts views Thread by DavidPr | last post: by
9 posts views Thread by adweaver | last post: by

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.