|
|
|
|
![]() ![]() |
Aug 16 2007, 07:32 PM
Post
#1
|
|
|
Newbie [Level 1] ![]() Group: Members Posts: 23 Joined: 16-August 07 Member No.: 48,273 |
I have looked around and I can't find any code to help me out.
I want to make it so you can log in to my site to get member featues. Could some one please help me |
|
|
|
Aug 16 2007, 07:45 PM
Post
#2
|
|
|
Super Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 439 Joined: 26-January 06 From: New Durham, NH Member No.: 17,651 |
I have looked around and I can't find any code to help me out. I want to make it so you can log in to my site to get member featues. Could some one please help me Look into learning PHP and CGI. You will need to use these languages to generate scripts for member validation, creating a database, and whatnot. Also, look into a web-hosting service or obtain a server that supports these functions. I'm also sure there are dummy-proof tools out there. Google them. |
|
|
|
Aug 16 2007, 09:48 PM
Post
#3
|
|
|
Newbie [Level 1] ![]() Group: Members Posts: 23 Joined: 16-August 07 Member No.: 48,273 |
thank you very much...And I didn't know that sites have tools that you could do this with
|
|
|
|
Aug 16 2007, 11:14 PM
Post
#4
|
|
|
A computer once beat me at chess, but it was no match for me at kick boxing. ![]() Group: [MODERATOR] Posts: 3,882 Joined: 24-July 05 From: In Trouble Again... still? Member No.: 9,787 ![]() |
HTML , by itself, is not capable of doing this.
You will require PHP, ASP, or CGI scripting to perform this log-in feature and likely a database like MYSQL. Look in the Tutorial Section here on the Trap17 or use the search feature to see what scripts other members have made available. |
|
|
|
Aug 17 2007, 10:05 AM
Post
#5
|
|
|
A clever man learns from his own mistakes, a WISE man learns from those of OTHERS ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: [HOSTED] Posts: 884 Joined: 12-April 06 From: Essex, UK Member No.: 21,719 |
Technically a HTACCESS solution would do if you only needed to protect a small area of the site and if it wasnt top secret stuff or anything, say if it was a site about you and your friends htaccess would be ideal as it would let them login but hopefully keep others out. Its a a lot simpler but not as good as php/cgi.
|
|
|
|
Aug 17 2007, 12:07 PM
Post
#6
|
|
|
NERVE: Interception ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: [HOSTED] Posts: 528 Joined: 14-April 07 From: Holy Terra Member No.: 41,610 |
yes, if you want advanced login/out functions you'll need php cgi/perl etc. a simple htaccess is fine for the average user but for some reason you're really paranoid try using php/perl/cgi scripts.
|
|
|
|
Aug 17 2007, 02:14 PM
Post
#7
|
|
|
Newbie [Level 1] ![]() Group: Members Posts: 23 Joined: 16-August 07 Member No.: 48,273 |
HTACCESS
What is that.. And what it dosn't keep all members out of the area..So if i made a staff only page some other people could possibly get it through this ACCESS thing.. |
|
|
|
Aug 17 2007, 03:00 PM
Post
#8
|
|
|
A clever man learns from his own mistakes, a WISE man learns from those of OTHERS ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: [HOSTED] Posts: 884 Joined: 12-April 06 From: Essex, UK Member No.: 21,719 |
the HTACCESS method involves a few components, firstly two files, one called .HTACCESS and one called .HTPASSWD and a specific folder you want protected. You chose the folder, say its called "protected" or something and put both of those files above inside it along with any files you want protected, EG all the pages you want protected.
now the first file .HTACCESS will have code that will make a little box come on screen and ask a user to login whenever they try to get into the protected area. All the usernames and passwords are stored in the file called .HTPASSWD and if the user's input matches that in the HTPASSWD file they are allowed in. the drawbacks are that only you can register someone, they cant signup to the website you have to enter their username and password manually into the list and it isnt very customizable, all it can do is log someone in or keep them in. the danger is that if someone got hold of the HTPASSWD file they could then see all the usernames, but not the passwords as they are encrypted. Still that is a bad thing, although its not easy to obtain this file. The benefits of this system are that its very easy for someone with no PHP/CGI experience to set-up and maintain. |
|
|
|
Aug 28 2007, 05:06 PM
Post
#9
|
|
|
Member [Level 3] ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 99 Joined: 7-October 04 Member No.: 1,482 |
you really can not use html as is for a login system, but if you pair say...html and php and mysql, you can have an easy to make script, without all of hte hassle.
|
|
|
|