Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- index
- <html>
- <head>
- <title>Formularze</title>
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- </head>
- <body>
- <h3> Wstep do formularzy w PHP </h3>
- <form method = "POST" action = "formularz.php">
- <label> Nazwa: </label> <input type ="text" name ="nazwa" /> <br />
- <label> Cena: </label> <input type ="text" name ="cena" /> <br />
- <label> Kategoria: </label> <input type ="text" name="kategoria" /> <br />
- <input type ="submit" value="wyslij"/> <br />
- <input type ="reset" value="wyczysc"/> <br />
- </form>
- </body>
- </html>
- formularz
- <html>
- <head>
- <meta charset="UTF-8">
- <tittle> </tittle>
- </head>
- <?php
- echo "<pre>";
- print_($_POST); //wyswietlamy zmienna tablic get
- echo "</pre>";
- ?>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement