
<?php if(!$data || !$prelegent || !$tytul){ echo "<table cellpadding=\"5\" border=\"0\"><form method=\"post\"> <tr> <td><p class=\"tresc\">Data</p></td> <td><input type=\"text\" name=\"data\" style=\"width: 250px\"></td> </tr> <tr> <td><p class=\"tresc\">Prelegent</p></td> <td><input type=\"text\" name=\"prelegent\" style=\"width: 250px\"></td> </tr> <tr> <td><p class=\"tresc\">Tytuł</p></td> <td><input type=\"text\" name=\"tytul\" style=\"width: 250px\"></td> </tr> <tr> <td> </td> <td><input type=\"submit\" name=\"button\" value=\"Wyslij\"> <input type=\"reset\" value=\"Wyczyść\"></td></form> </tr> </table>"; } else{ if ($_POST['button'] == "Wyslij"){ $plik = "plik.txt"; } } ?>