Welcome to W3Courses
 Like Us on Facebook

Pass Array

Pass Array from Multipart/Form-data Post Method or Query String with Foreach Function in PHP

You can have your form build an array of mutiple text box values and then pass it. The problem is that is global variables are on, it will work but if global variables are off you will have to retrieve each element like the following. If you are using the query string, replace $_Post with $_Get


echo("<form name='multiupload' enctype='multipart/form-data' method='post' action='{$_SERVER['PHP_SELF']}'>");