lvalverdeb
Posts: 299
|
Posted: 03/31/2004, 11:38 PM |
|
ray,
how about something like this?
1)The user clicks on a link that contains the activation code e.g. http://www.yourdomain/activate.php?userid=aaa&activationcode=xxxxxxxxxxx.
2) on the afterinitialise event of your page you could use something similar to the following:
global $pagename;
$dispmessage = "Your account has not been activated";
$userid = CCGetFromGet("userid","");
$activcode = CCGetFromGet("activationcode","");
if (strlen($activcode) && strlen($userid)) {
$db = new clsDByourconn();
$cSQL = "UPDATE usertable SET activationcode = ".$activcode." WHERE user_id =".$userid;
$db->query($cSQL);
$db->close;
$dispmessage ="Your account has been activated";
}
$pagename->lblMessage->SetValue($dispmessage);
Luis
_________________
lvalverdeb
CR, GMT-6
XAMPP/Ubuntu/CCS3.2/4 |