Pliki
naglowek.php :
<?php <html> <head> </head> <body> <table> ?>
stopka.php :
<?php <tr><td> <form method="GET"> <input type="text" name="text" maxlength="100" > <input type="button" value="zapis" onClick="dodaj_wpis()"> </form> </td></tr> </table> </body> </html> ?>
i plik index.php
<? $naglowek="modules/naglowek.php"; { include 'modules/naglowek.php'; } else { include 'wrongpage.php'; } { } include 'funkcje.php'; $stopka="modules/stopka.php"; { include 'modules/stopka.php'; } else { include 'wrongpage.php'; } ?>
oraz plik funkcje.php
<? function dodaj_wpis() { { $text=$_GET['text']; $text="<tr><td>".$text."</td></tr>"; } else { } } ?>
Pozdrawiam i proszę o podpowiedź .