Файл: vsime.com/anketa/inc/edit_smoking.php
Строк: 64
<?
if(isset($_POST['submited']))
{
if (hsc(@$_POST['mdp'])==$mdp)
{
mysqli_query($dbi, "UPDATE `anketa` SET `smoking` = '".my_esc($_POST['smoking'])."' WHERE `id_user` = '$ank[id]'");
header("Location: ?id=$ank[id]&edit=other");
msg_sess("Изменения успешно сохранены");exit();
} else hacked_by_Killer();
}
echo "<div class=list><form method='post' action=''>n";
echo "Курите ли вы:<br />n";
echo "<input type='radio' name='smoking' value='0'".($ank['anketa']['smoking']==0?" checked='checked'":null)."> Не скажу!<br/>n";
echo "<input type='radio' name='smoking' value='no_smoking'".($ank['anketa']['smoking']=='no_smoking'?" checked='checked'":null)."> Не курю<br/>n";
echo "<input type='radio' name='smoking' value='smoking'".($ank['anketa']['smoking']=='smoking'?" checked='checked'":null)."> Курю<br/>n";
echo "<input type='radio' name='smoking' value='some_times'".($ank['anketa']['smoking']=='some_times'?" checked='checked'":null)."> Иногда<br/>n";
echo "<input type='radio' name='smoking' value='drop'".($ank['anketa']['smoking']=='drop'?" checked='checked'":null)."> Бросаю<br/>n";
echo "<input type='hidden' name='mdp' value='$mdp'>n";
echo "<input type='submit' name='submited' value='Изменить' />n";
echo "</form></div>n";
?>