Donate SIGN UP

Login/Register Script with PHP?

Avatar Image
Metaphysical | 10:59 Mon 12th Jan 2004 | Technology
3 Answers
I am looking for an easy to use PHP script so that visitors to my website would have to login or register before viewing the main area. I would like the register script to be automatic so I don't have to reply to everyone myself. Any ideas where I can get one or anyone who can create one for me (for a reasonable price or FREE!)?

Also I could do with a script for sorting a list, so that you click on the column heading to sort the list by number, alphabetically or whatever.

I am very new to PHP and can't really do much with it at all, but am willing to learn if necessary.

Any help or advice would be appreciated.

Gravatar

Answers

1 to 3 of 3rss feed

Best Answer

No best answer has yet been selected by Metaphysical. Once a best answer has been selected, it will be shown here.

For more on marking an answer as the "Best Answer", please visit our FAQ.
I think you would really need some sort of Database to get this working. The database could both store the names and also be used to authenticate the users when they login. All this is possible with text files but would be extremely difficult to write. As for the lists then again a Database would be the answer. One of the main uses of Databases is to retrieve data in specific orders and what your asking for is fairly trivial when using this method. Doing your own sorting code would be a good exercise in programming but would be pretty slow and prone to error. If you need free help or advice the you can contact me via my site at www.v60consulting.com I have only used PHP briefly myself but I have a large amount of programming experience (been doing it for a living for 10 years or so) and from what I have seen of PHP I could knock up a few examples for you.
Question Author
Thanks for the response BadBob, I have sent a email through your site.
metaphysical, i've just recently been writing a login page for my own website using php.

badbob's right about the database. if you're doing something fairly small scale, i'd recommend using a MySQL database to store usernames, passwords and email addresses. then your php page would simply compare a password typed in by a user, with the corresponding entry in the db. if you go to www.php.net you'll find plenty of information there which will tell you exactly what you need to do.

another good site for all sorts of info is www.tek-tips.com

1 to 3 of 3rss feed

Do you know the answer?

Login/Register Script with PHP?

Answer Question >>

Related Questions

Sorry, we can't find any related questions. Try using the search bar at the top of the page to search for some keywords, or choose a topic and submit your own question.