Vedete se questo vi è utile, l'ho preso dalla guida Mcgraw-Hill,
c'è anke il file allegato

<?php
/************************************************** ************
* Pagina di conferma del nuovo utente. Si può accedere solo *
* da un link di un email. *
************************************************** ************/
require_once('includes/register_funcs.inc');
include_once('includes/header_footer.php');
site_header('Account Confirmation');
if ($_GET['hash'] && $_GET['email']) {
$worked = user_confirm();
} else {
$feedback_str = "<P class=\"errormess\">ERROR - Bad link</P>";
}
if ($worked != 1) {
$noconfirm = '<P class="errormess">Something went wrong. Send
email to admin@example.com for help. If you clicked through to this
page directly, please go to login.php instead.</P>';
} else {
$confirm = '<P class="big">You are now confirmed. Log in to start browsing the site</P>';
}
$page = <<< EOPAGE
<TABLE CELLPADDING=0 CELLSPACING=0 BORDER=0 ALIGN=CENTER WIDTH=621>
<TR>
<TD><IMG WIDTH=15 HEIGHT=1 SRC=../images/spacer.gif></TD>
<TD WIDTH=606 CLASS=left>
$feedback_str
$noconfirm
$confirm
</TD>
</TR>
</TABLE>
EOPAGE;
echo $page;

site_footer();
?>