Follow along with the video below to see how to install our site as a web app on your home screen.
Бележка: This feature may not be available in some browsers.
tedobedo каза:Никой?
Моя грешка... win-1225rombeca каза:Няма такъв win-1221
Я виж по добре. Тоя файл addnews.php има ли енкодинг? А в сесията?
<?
if(isset($_POST['submit'])) {
$namen = htmlspecialchars($_POST['name']);
$text = htmlspecialchars($_POST['text']);
$query = "INSERT INTO `news` (`name` , `text`) VALUES ('$namen', '$text')";
if(mysql_query($query)) { echo 'OK'; } else { echo 'Ãðåøêà'; }}
?>
<form action="" method="POST">
<table>
<tr><td>Çàãëàâèå: </td><td><input type="text" name="name"></td></tr>
<tr><td>Òåêñò: </td><td><textarea rows="10" cols="25" name="text"></textarea></td></tr>
<tr><td></td><td><input type="submit" name="submit" value="Äîáàâè"></td></tr></table></form>