Salve, sto seguendo questo tutorial:

http://php.html.it/articoli/leggi/90...tenti-con-php/

Però lo scirpt di registrazione mi da questo notice:

Notice: Undefined index: action in D:\xampp\htdocs\luik\include\reg.lib.php on line 51

vi posto il codice:

Codice PHP:
function reg_check_data(&$data){
    global 
$_CONFIG;
    
    
$errors = array();
    
    foreach(
$data as $field_name => $value){
        
$func $_CONFIG['check_table'][$field_name];  // linea 51.Error:.!
        
if(!is_null($func)){
            
$ret $func($value);
            if(
$ret !== true)
                
$errors[] = array($field_name$ret);
        }
    }
    
    return 
count($errors) > $errors true;

come faccio a tolgerlo ?

grazie.
saluti,
buona serata.