madhawaseeeee

form

Apr 12th, 2017
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.63 KB | None | 0 0
  1. <?php
  2.  
  3. if(isset($_POST["myTF"])){
  4.     $myTF=$_POST["myTF"];
  5.     foreach($myTF as $index_first => $val){
  6.         foreach($val as $index_second => $val2){
  7.             echo($val2);
  8.         }
  9.     }
  10. }
  11. ?>
  12. <html>
  13.     <head>
  14.     </head>
  15.     <body>
  16.         <form method="POST" action="">
  17.             <input type="text" name="myTF[0][0]" values="A"/><br>
  18.             <input type="text" name="myTF[0][1]" values="B"/><br>
  19.             <input type="text" name="myTF[0][2]" values="C"/><br>
  20.             <input type="text" name="myTF[1][0]" values="D"/><br>
  21.             <input type="submit" value="send"/>
  22.         </form>
  23.     </body>
  24. </html>
Advertisement
Add Comment
Please, Sign In to add comment