Codice PHP:
<?php
include("db.php");
$username=$_POST['username'];
$password=$_POST['password'];
$submit=$_POST['Submit'];

if(isset(
$submit)) {
    
    
$query"SELECT * FROM table WHERE username='$username' AND password='$password'";
    
$result=mysql_query($query);
    
$arrayresult=mysql_fetch_array($result);
    
    if(
mysql_num_rows($result)>0) {
    
        if(
$arrayresult['attivo']=='si') {
            
?>

<html><head>
<meta content="text/html; charset=ISO-8859-1" http-equiv="content-type"><title>Titolo</title>
</head><body>            


[url="link1.php"]testo1[/url]


[url="link2.php"]testo2[/url]


[url="link3"]testo3[/url]



<?php
        
}
    
        else echo 
"Il tuo account non è ancora attivo.

[url='login.html']Login.[/url]"
;
                    
}
}

?>
</body></html>