Location: PHPKode > projects > Craigslist Classfieds PHP Clone Script > classifieds/confirmRegister.php
<?php

	

session_start();

include("Db.php");

include("URLs.php");

include("classes/Sanitize.php");  

include("classes/Validator.php");   



$email = $_GET['user'];



$email = Sanitize::Clean($email);            

if(!Validator::Email($email)) {     

    echo 'Not a valid email address'; 

    exit(); 

} else {

    mysql_query("UPDATE Users SET isActive='1' WHERE email='$email'");

    header("Location: " . MYACCOUNT);   

}

    

?>
Return current item: Craigslist Classfieds PHP Clone Script