<?
echo "<div class=\"trow\">\n";
echo "<a href=\"/anketa.php\">Анкета</a> &gt; Интересы<br />\n";
echo "</div>\n";
if (isset($_GET['set']))
{
if (isset($_POST['interesy']) && strlen2(esc(stripcslashes(htmlspecialchars($_POST['interesy']))))<=256)
{
$user['interesy']=esc(stripcslashes(htmlspecialchars($_POST['interesy'])));
mysql_query("UPDATE `user` SET `interesy` = '$user[interesy]' WHERE `id` = '$user[id]' LIMIT 1");
}
else $err='О интересах нужно писать меньше :)';
header ("Location: anketa.php?ok&".SID."");
exit;}
err();
aut();

echo "<form method=\"post\" action=\"anketa.php?p=interesy&amp;set\">\n";
echo "<input type='text' name='ucheba' value='$user[ucheba]' maxlength='100' /><br />\n";
echo "<input value=\"Изменить\" class=\"form\" type=\"submit\" />\n";
echo "</form>\n";


?>
