Current Path : /web/htdocs/www.entinoprofit.org/home/database/
Upload File :
Current File : /web/htdocs/www.entinoprofit.org/home/database/modificaok.php

<html>
<head>
<title>SpritzLandia</title>
<LINK href="style.css" rel="stylesheet" type="text/css">
</head>
<?php
include_once("include/config.php");
include_once("include/auth.lib.php");


list($status, $user) = auth_get_status();
header("Refresh: 2;URL=myspritzlandia.php");

if($status == AUTH_LOGGED & auth_get_option("TRANSICTION METHOD") == AUTH_USE_LINK){
	$link = "?uid=".$_GET['uid'];
}else	$link = '';


if($_POST) {

$name=$_POST['name']; 
$mail=$_POST['mail']; 
$eta=$_POST['eta']; 
$giorno=$_POST['giorno']; 
$mese=$_POST['mese'];
$anno=$_POST['anno'];
$sesso=$_POST['sesso']; 
$status=$_POST['status']; 
$facolta=$_POST['facolta'];
$citta=$_POST['citta'];		
$id= $user["id"];

$username= $user["username"];

$query1 = "UPDATE utenti
SET name = '".$name."', 
email = '".$mail."', 
eta = '".$eta."', 
giorno = '".$giorno."', 
mese = '".$mese."', 
anno = '".$anno."', 
sesso = '".$sesso."', 
status = '".$status."', 
facolta = '".$facolta."', 
citta = '".$citta."' 
WHERE username = '".$username."' ";

$result2= mysql_query($query1) or die("errore nella query" .mysql_error()); 

echo '<div class="login" align="center">Profilo aggiornato con successo... attendi il reindirizzamento</div>';
}
?>
</html>