Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- if(isset($_POST['enviar'])){
- $data = $_POST;
- echo "<pre>";
- print_r($data);
- echo "</pre><hr />";
- }
- ?><!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <title>Document</title>
- </head>
- <body>
- <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="POST" enctype="application/x-www-form-urlencoded">
- <label for="">Produto [1]</label>
- <input type="text" name="prdutos[1]" id="" required /><br />
- <label for="">Produto [2]</label>
- <input type="text" name="prdutos[2]" id="" required /><br />
- <label for="">Produto [3]</label>
- <input type="text" name="prdutos[3]" id="" required /><br />
- <label for="">Produto [4]</label>
- <input type="text" name="prdutos[4]" id="" required /><br />
- <label for="">Produto [5]</label>
- <input type="text" name="prdutos[5]" id="" required /><br />
- <label for="">Produto [6]</label>
- <input type="text" name="prdutos[6]" id="" required /><br /><br />
- <input type="submit" name="enviar" value="Enviar" />
- </form>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement