Html code: {code...} php code: {code...} I can only get the first one. How can I obtain all the html code submitted using a form:
Php code:
$imgs = $_FILES['imgs'];
In this case, I can only get the first one. How can I obtain all the information I submitted using a form?
Reply content:
Html code:
Php code:
$imgs = $_FILES['imgs'];
In this case, I can only get the first one. How can I obtain all the information I submitted using a form?
`
foreach($_FILES['imgs']['name'] as $key => $row ){ echo $_FILES['imgs']['name'][$key];}
`
Use the following method:
dump(trim($_POST['imgs1']));dump(trim($_POST['imgs2']));dump(trim($_POST['imgs3']));
The method on the first floor is OK! Pass it as an array to the background and process it!
Upload with Ajax, directly return the front-end image url... and put it in the input box
Front end:
Backend:print_r($_POST["imgs"]);