Re: How to confirm subscriptions by e-mail on a PHP site ?

From: Date: Fri, 20 May 2005 12:01:25 +0000
Subject: Re: How to confirm subscriptions by e-mail on a PHP site ?
Groups: php.general 
Request: Send a blank email to php-general+get-215647@lists.php.net to get a copy of this message
The way i did it was, put a 25char hash inside the "registered" column, then sent an email to the user containing something like domain.com?user=id_number&hash=hash then i did "select userID where userID = $_GET['user'] & registered = $_GET['hash']" (not exactly the sql phrase, but i dont feel like adding %s's and mysql_real_escape_strings to it but you get the picture) then from the data i got, i did if($row_is_returned) { update users set registered=yes WHERE userID = $_GET['user']; } and that was it. Marcus Mário Gamito wrote:
Hi, I'm making this middle-range site (i. e., not so little, bit not so big, either), and i want users that subscribe to my site to have their confirmation made by email. Does anyone sugests a simple, yet effective way to do this ? Please, don't misunderstand me. The PHP part i know. The sugestions i'm asking for are about the mechanism. Thanking you in advance. Warm Regards, Mário Gamito


« previous php.general (#215647) next »