Jump to content

validate your account by clicking on a link in the email


runnerjp

Recommended Posts

what i would do is give the user a unique reference number and save that into a SQL database.

 

then i would make a page called validate.php and have a link in the email pointing to that page, for example:

 

www.mysite.com/validate.php?v=unique_ref_num

 

that way u can lift the code from the address mar, and compare that to the SQL, if they have clicked the link and the two match up (i.e. the link address and the SQL) then you know the email address is valid.

You could include a valid column in your database, and just set that to 1 (or true) where the UIN is.

 


$UIN = $_REQUEST['V'];

include "database.php";

$QUERY = "UPDATE USER_ACCOUNTS SET VALID=1 WHERE $UIN='V'";
$MYSQL_QUERY($QUERY);

You could include a valid column in your database, and just set that to 1 (or true) where the UIN is.

 


$UIN = $_REQUEST['V'];

include "database.php";

$QUERY = "UPDATE USER_ACCOUNTS SET VALID=1 WHERE $UIN='$UIN'";
$MYSQL_QUERY($QUERY);

 

sorry my muistake V should be $UIN in the query my bad :(

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.