
<?php require('../config.php'); { exit; } else { { echo '<br /><br /><form action="" method="post"> <font color=red>*</font>Tytuł: <br /><input type="text" name="tytul" style="width: 200px;" /><br /> <font color=red>*</font>Tresć wpisu: <br /><textarea name="tresc" style="width: 200px; height: 100px;"> </textarea><br /> <input type="submit" value="Wyslij"> </form><br /> <br /><br /> <font color=red>*</font> - wymagane pole'; } else { $autor=$login; $zapytanie = 'INSERT INTO news (tytul, tresc, autor, data) '; $zapytanie .= "VALUES ('".$_POST['tytul']."', '".$_POST['tresc']."', '".$autor."', '".$data."'); "; } } ?>
Bardzo proszę o pomoc!
