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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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




-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux