/    Sign up×
Community /Pin to ProfileBookmark

Password Protect…

I am looking for code or software that will allow a user to login and create or change his/her password without my verification. Does anyone know how or where I can find such a thing?

Thanks
dave
?

to post a comment
PHP

1 Comments(s)

Copy linkTweet thisAlerts:
@The_Anime_KingFeb 21.2004 — I suppose you mean logging in and stuff on a normal site and not a forum.

First you should think of a way to have people that log in, stay logged in. You can do that in two ways, the normal way is creating cookies, a small file on the users computer that saves his data. The other way is creating a database and having everything saved in the database, but that asks a lot of SQL-knowledge.

The first thing is easier. It goes like this:

[code=php]
<form action=<?php echo $PHP_SELF;?> method=POST>
<input type=text name=Username>
<input type=password name=Password>
<input type=hidden value=1 name=submission>
<input type=submit value=Submit name=submit>
</form>
<?php
setcookie("Username",$Username,time() + "99999999");
setcookie("Password",$Password,time() + "99999999");
?>[/code]


This script saves data in cookies. Next you need to read them and compare them to stuff in your database, but for that i need more information about your database.

This is the first push to a pretty hard part of a good site. Little bit too hard for me so i did it another way ?

I hope i helped you with the start, and good luck with your site!

Greetzzz tAK
×

Success!

Help @bfdmedic spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.19,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...