<html> <meta ...> <?= (($_GET['act'] != 'norefresh') ? '<meta http-equiv=\"Refresh\" content=\"5\">' : ''); ?> ... </head> <body> ... <?php if($_GET['act'] == 'norefresh') { } else { } ?> </body> </html>
<?php #dac kod odpowiedziany za wwsywietlanie. } ?>
<input type="submit" name="submit" value="Dodaj" />