pass array as php post variable - Php

pass array variable

Snippet Code


  
Rate this page :
  [ 0 votes]

to pass array as php post variable,

page1: <form method=POST> <input type=text name='img[]'><input type=submit> </form> page2: $imgVal = $_POST['img']; foreach($imgVal as $val){ echo $val; }

Tags


Ask Questions

Ask Question