<html> <head> <title>Test Strona</title> <meta http-equiv="Content-type" content="text/html; charset=ISO-8859-2" /> <link href="style.css" rel="stylesheet" type="text/css"> <body bgcolor="gray"> <?php $dbhost = "localhost"; $dbuser = "root"; $dbpass = ""; $db = "mysql_tut"; $query = "SELECT * FROM people"; { echo "<tr><td colspan=3><p class=\"di\"> " . $person['Message'] . "</p><hr width=165 align=\"left\" color=white></td></tr>"; } ?> </br></br><p class="tresc">Witaj w księdze gosci!</p> <form action="index.php" method="post"> <table> <tr><td><p class="name">Nick :</p></td> <td><input type="text" name="InputName"></td> <tr><td><p class="name">Wiadomosc :</p></td> <td><input type="text" name="InputMess"></td> <tr><td></td><td><input type="submit" name="send" value="Wyslij"> <input type="reset" value="Reset"> <input type="submit" name="usun" value="Usun"></td> </table> </form> <?php $name = $_POST['InputName']; $mess = $_POST['InputMess']; if(!$_POST['send']) { } else { } if($_POST['usun']) { } ?> </body> </html>
teraz wiem ze to dobry zapis i nic ;/