Warning: Cannot modify header information - headers already sent by (output started at C:\Program Files\xampp\htdocs\ck\imie.php:11) in C:\Program Files\xampp\htdocs\ck\imie.php on line 32
a oto kod:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Language" content="pl"> <meta http-equiv="Content-type" content="text/html; charset=UTF-8" /> </head> <body> <?php function formularz() { ?> <span>Podaj swoje imię:</span> <form method="post" action="imie.php"> <input type="text" name="imie"> <input type=submit value="wyślij"> </form> </body> </html> <?php } $imie=$_POST['imie']; } else { formularz(); } ?>