/**
* The user is already logged in, not allowed to register.
*/
if($session->logged_in){
echo "Registrazione Fallita";
echo "Spiacente $session->username, sei gia registrato. "
."Main. ";
}
/**
* The user has submitted the registration form and the
* results have been processed.
*/
else if(isset($_SESSION['regsuccess'])){
/* Registration was successful */
if($_SESSION['regsuccess']){
echo "Registrazione effettuata!";
echo "Grazie ".$_SESSION['reguname'].", le informazioni che ci hai fornito sono state salvate. "
."Torna alla pagina di Login. ";
}
/* Registration failed */
else{
echo "Registrazione Fallita";
echo "Si è verificato un'errore e la registrazione dell'utente ".$_SESSION['reguname'].", "
."è fallita. Ti preghiamo di riprovare più tardi. ";
}
unset($_SESSION['regsuccess']);
unset($_SESSION['reguname']);
}
/**
* The user has not filled out the registration form yet.
* Below is the page with the sign-up form, the names
* of the input fields are important and should not
* be changed.
*/
else{
?>
Registrati
La registrazione è il primo passo necessario per poter accedere ai contenuti di quest'area.
Ti preghiamo di inserire tutti i dati richiesti: nominativo (nome e cognome), società di appartenenza, User (che utilizzerai per effettuare il login), Password, Email e Partita IVA.
Dopo che ci avrai fornito questi dati ti preghiamo di attendere la nostra conferma, che ti arriverà per posta elettronica all'indirizzo che ci hai fornito. Da quel momento potrai accedere all'area protetta.
Grazie!
if($form->num_errors > 0){
echo "".$form->num_errors." errore(i)";
}
?>
}
?>
|