kbenson

Registered
May 23, 2006
1
0
151
I know there has to be a simple way to do this . . .

All I want to do is have a section of my site that only certain people can log onto. I want to assign them a username and password so that I know they are legitimately meant to be there. I have written a VERY basic database table in phpMyAdmin and just want to be able to create a login page.

I generally use Dreamweaver for my design, but am happy to do this through Cpanel or phpMyAdmin or whatever. I just need to know how or at least where to start looking. Everything I've found is a bit over my head as I have only used WYSIWYG programs and rarely deal with any code.

Any help would be much appreciated; I am about to tear my hair out because I know this ought to be a lot easier than it is.

Thanks,
K
 

webignition

Well-Known Member
Jan 22, 2005
1,880
0
166
kbenson said:
I know there has to be a simple way to do this . . .

All I want to do is have a section of my site that only certain people can log onto. I want to assign them a username and password so that I know they are legitimately meant to be there. I have written a VERY basic database table in phpMyAdmin and just want to be able to create a login page.

I generally use Dreamweaver for my design, but am happy to do this through Cpanel or phpMyAdmin or whatever. I just need to know how or at least where to start looking. Everything I've found is a bit over my head as I have only used WYSIWYG programs and rarely deal with any code.

Any help would be much appreciated; I am about to tear my hair out because I know this ought to be a lot easier than it is.

Thanks,
K
There's no quick and easy way to learn to code in PHP.

You'd preferably need to have a good background in programming, in which case you'd merely need to familiarise yourself with PHP and it's syntax.

That said, the following method would work. It's up to you how you go about implementing it in PHP:

1) Create an HTML form with a username field and a password field
2) Have the form post to a PHP script
3) Within the PHP script, compare the supplied password with that retrieved from the database. The database query would use the supplied username.