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

?>
