I've a form with too many fields. One of these fields is as follows:
<form action="go_to_preview.php" role="form" method="post" enctype="multipart/form-data">
<input type="file" name="equip_image" id="equip_image">
</form>
Now the purpose of file go_to_preview.php is to show the data filled in by user in the form of labels. All the filled in data are also contained in hidden fields. If user finds whatever he/she has filled in is perfect then user clicks the submit button present on file go_to_preview.php. As soon as user clicks on submit button I'll add the data I received through $_POST to the database.
Now my issue is along with $_POST(which is an array of data present into hidden fields) I want the data from $_FILES as it is. How should I achieve this? Can someone please help me in this regard?
Thanks in advance.
var_dump($_FILES)andvar_dump($_POST), you should see both have the correct contents :)