L'update viene fatto così:

Codice PHP:
if(isSet($_GET["update"])){
    
$id_utente=$_GET["update"];
    
$cognome=htmlentities($_POST['cognome']);
    
$nome=htmlentities($_POST['nome']);
    
$eta=htmlentities($_POST['eta']);
    
$via=htmlentities($_POST['indirizzo']);
    
$cap=htmlentities($_POST['cap']);
    
$citta=htmlentities($_POST['citta']);
    
$provincia=htmlentities($_POST['provincia']);
    
$mobile=htmlentities($_POST['mobile']);
    
$telefono=htmlentities($_POST['telefono']);
    
$fax=htmlentities($_POST['fax']);
    
$msn=htmlentities($_POST['msn']);
    
    
$homepage=$_POST['homepage'];
    
$homepage str_replace("http://"""$homepage);
    
$homepage str_replace("www."""$homepage);
    if(
$homepage!=NULL){
    
$homepage 'http://www.'.$homepage;}    
    
    
$a=mysql_query("UPDATE utenti SET cognome = \"$cognome\", nome = \"$nome\", eta = \"$eta\", via = \"$via\", cap = \"$cap\", citta = \"$citta\", provincia = \"$provincia\", mobile = \"$mobile\", telefono = \"$telefono\", fax = \"$fax\", msn = \"$msn\", homepage = \"$homepage\" WHERE id=$id_utente ");

?>