php - How to get the $_FILES array data as it is after form submission in following scenario? -


i've form many fields. 1 of these fields 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 purpose of file go_to_preview.php show data filled in user in form of labels. filled in data contained in hidden fields. if user finds whatever he/she has filled in perfect user clicks submit button present on file go_to_preview.php. user clicks on submit button i'll add data received through $_post database. issue along $_post(which array of data present hidden fields) want data $_files is. how should achieve this? can please me in regard? in advance.

a common approach sessions:

//go_to_preview.php session_start(); $_session['files'] = $_files;  //final.php session_start(); $files_var = $_session['files']; //use $files_var unset($_session['files']); 

Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

jsf - How to ajax update an item in the footer of a PrimeFaces dataTable? -

jquery - Keeping Kendo Datepicker in min/max range -