dodawanie>podglad (cofnij [edycja - ladowanie strony z wypelnionymi plami) , dodaj [dodanie wpisu do mysql]) i wszystko jestr niby ok podglad z podlgadu do zmiany zmiana i podglad i dodanie tez dziala tylko zamiast tego co bylo w polach formularza dodaje takie cos
$tytul 14.02.2007, 10:50
$tresc
dodaje takze caly kod od dodawnia
<?php //********************************************************************************
****************** { //krotkie zmienne $tytul=$_POST['tytul']; $autor=$_POST['autor']; $zrodlo=$_POST['zrodlo']; $tresc=$_POST['tresc']; // link do edycji danych //link do dodania newsa } //********************************************************************************
****************** { //krotkie zmienne $tytul=$_POST['tytul']; $autor=$_POST['autor']; $zrodlo=$_POST['zrodlo']; $tresc=$_POST['tresc']; echo 'Edycja danych / Dodawanie nowego newsa: <P></P> <form method="POST" action="news.php?action=preview"> <table class="text"> <tr><td widht="50px"><b>Tytu³ </b></td><td widht="10px"><b>:</b></td> <tr><td widht="50px"><b>Autor </b></td><td widht="10px"><b>:</b></td> <tr><td widht="50px"><b>¬ród³o </b></td><td widht="10px"><b>:</b></td> <tr><td widht="50px" valign="top"><b>Tre¶æ </b></td><td widht="10px" valign="top"><b>:</b></td> <tr><td width="150px" colspan="3"><center><input type="submit" value="Podgl±d" class="button"></center></td></tr> </table><P></P> <table class="text"> <tr><td widht="50px"><b>Wstaw </b></td><td widht="10px"><b>:</b></td> <td width="300px"> <input type="submit" value="B" class="button"> <input type="submit" value="I" class="button"> <input type="submit" value="U" class="button"> <input type="submit" value="UL" class="button"> <input type="submit" value="LI" class="button"> <input type="submit" value="TB" class="button"> <input type="submit" value="TD" class="button"> <input type="submit" value="TR" class="button"> </td> </tr> </table> </form> '; } //********************************************************************************
****************** { //krotkie zmienne $tytul=$_POST['tytul']; $autor=$_POST['autor']; $zrodlo=$_POST['zrodlo']; $tresc=$_POST['tresc']; } //********************************************************************************
**************** <form method="POST" action="news.php?action=preview"> <table class="text"> <tr><td widht="50px"><b>Tytu³ </b></td><td widht="10px"><b>:</b></td> <td width="150px"><input type="text" name="tytul" size="34" class="formularz"> </td></tr> <tr><td widht="50px"><b>Autor </b></td><td widht="10px"><b>:</b></td> <td width="150px"><input type="text" name="autor" size="34" class="formularz"> </td></tr> <tr><td widht="50px"><b>¬ród³o </b></td><td widht="10px"><b>:</b></td> <td width="150px"><input type="text" name="zrodlo" size="34" class="formularz" value="http://"> </td></tr> <tr><td widht="50px" valign="top"><b>Tre¶æ </b></td><td widht="10px" valign="top"><b>:</b></td> <td width="150px"><textarea name="tresc" cols="70" rows="10" class="textera"></textarea></td></tr> <tr><td width="150px" colspan="3"><center><input type="submit" value="Podgl±d" class="button"></center></td></tr> </table><P></P> <table class="text"> <tr><td widht="50px"><b>Wstaw </b></td><td widht="10px"><b>:</b></td> <td width="300px"> <input type="submit" value="B" class="button"> <input type="submit" value="I" class="button"> <input type="submit" value="U" class="button"> <input type="submit" value="UL" class="button"> <input type="submit" value="LI" class="button"> <input type="submit" value="TB" class="button"> <input type="submit" value="TD" class="button"> <input type="submit" value="TR" class="button"> </td> </tr> </table> </form> '; } ?>
moze wy wiecie jak to nareperowac bo ja nie :/