Advertisement
yesamarcos

Pegue os produtos do banco e atualize !!

Oct 17th, 2017
211
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.02 KB | None | 0 0
  1. <?php
  2.  
  3. if(isset($_POST['enviar'])){
  4.  
  5.     $data = $_POST;
  6.  
  7.     echo "<pre>";
  8.         print_r($data);
  9.     echo "</pre><hr />";
  10. }
  11.  
  12. ?><!DOCTYPE html>
  13. <html lang="en">
  14. <head>
  15.     <meta charset="UTF-8">
  16.     <title>Document</title>
  17. </head>
  18. <body>
  19.     <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="POST" enctype="application/x-www-form-urlencoded">          
  20.         <label for="">Produto [1]</label>
  21.         <input type="text" name="prdutos[1]" id="" required /><br />
  22.         <label for="">Produto [2]</label>
  23.         <input type="text" name="prdutos[2]" id="" required /><br />
  24.         <label for="">Produto [3]</label>
  25.         <input type="text" name="prdutos[3]" id="" required /><br />
  26.         <label for="">Produto [4]</label>
  27.         <input type="text" name="prdutos[4]" id="" required /><br />
  28.         <label for="">Produto [5]</label>
  29.         <input type="text" name="prdutos[5]" id="" required /><br />
  30.         <label for="">Produto [6]</label>
  31.         <input type="text" name="prdutos[6]" id="" required /><br /><br />
  32.         <input type="submit" name="enviar" value="Enviar" />
  33.     </form>
  34. </body>
  35. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement