dodaj.php
<?php echo' <form action="wypisz.php" method="post"> <table> <tr><td>Nazwa:</td><td><input type="text" name="Imie" /></td></tr> </table> <p><input type="submit" name="Submit" value="Podgląd" /> <input type="reset" value="Kasuj" /> </form>'; ?>
wypisz.php
<?php echo' <form action="zapisz.php" method="post"> <input type="hidden" name="Imie" value="'.$Imie.'"> <textarea type="hidden" name="Opis">'.$Opis.'</textarea> <p><input name="popraw" TYPE="button" VALUE="Popraw" onClick="history.go(-1)" /> <input type="submit" name="Submit" value="Zapisz" /> </form>'; ?>
zapisz.php
<?php $db_user='xxx'; $db_password='zzz'; $database='www'; $query = "INSERT INTO test set nazwa='".$_POST['Imie']."'"; ?>
Dzieki za pomoc
Pozdrawiam