<?
echo "<div class=\"h\">Город</div><hr />\n";
if ($mail_in_new>0)echo "<b><a href=\"../mail.php?act=in\">Приват</a></b> [$mail_in_new]<br />\n";

if (isset($_GET['set']) && $_GET['set']=='set' && isset($_POST['city']))
{
$city=htmlspecialchars($_POST['city']);
mysql_query("UPDATE `$mysql[pref]users` SET `city` = '$city' WHERE `id` = '".$user['id']."';");
header ("Location: anketa.php?msg=changed&".SID."");
exit;
}
else
{
echo "<form method=\"post\" action=\"anketa.php?p=city&amp;set=set\">\n";
echo "<input name=\"city\" class=\"form\" value=\"".base64_decode($user['city'])."\" type=\"text\" /><br />\n";
echo "<input value=\"Установить\" class=\"form\" type=\"submit\" />\n";
echo "</form>\n";
}

?>
