Purtroppo non è così semplice, in quanto nel form eseguo un metodo action che lancia "register.php", il cui codice è il seguente:

Codice PHP:
<html>
<head>
<style type="text/css">
<!--
.style1 {
    color: #FF0000;
    font-weight: bold;
}
-->
</style>
</head>
<body>
<?php
include_once("include/config.php");
include_once(
"include/reg.lib.php");

if(isset(
$_POST['action']) and $_POST['action'] == 'Invia'){
    
$ret reg_check_data($_POST);
    
$status = ($ret === true) ? reg_register($_POST) : REG_ERRORS;
    
    
    switch(
$status){
        case 
REG_ERRORS:
            
?>
            <span class="style1">Sono stati rilevati i seguenti errori:</span>

            <?php
            
foreach($ret as $error)
                
printf("[b]%s[/b]: %s
"
$error[0], $error[1]);
            
?>
            
Premere "indietro" per modificare i dati
            <?php
        
break;
        case 
REG_FAILED:
            echo 
"Registrazione Fallita a causa di un errore interno.";
        break;
        case 
REG_SUCCESS:
         
            echo 
"Registrazione avvenuta con successo.";
            
        break;
    }
}
?>
</body>
</html>