I tried to insert it but didn't help.Well, however when I took out this part:
Code:
if ($CURUSER["chatpost"] === 'no'){
echo'<h2><br><center><font color=red>Tev ir atslēgts čats.</font></center></h2>';
die();
}
else
{
echo '<form method=post action=shoutbox.php>';
echo '<input type=hidden name=id value='.(int)$res['id'].'>';
echo '<textarea name=text rows=3 id=specialbox>'.htmlspecialchars($res['text']).'</textarea>';
echo '<input type=submit name=save value=save class=btn>';
echo '</form></body></html>';
die;
}
Everything started to work.