create a new field to the database table, called : code
make a string , use the microteime, the parts of the email, and its ID, and a random number using rand() , and the session_id() , and encrypt this whole string with SHA1 ,
take into the link as activation value. And update the table with this code to store this string.
The user click on this code , and activate.php will validate it.
how to make it better, search on php.net the rand() function.
Hello, jjozsi.