在 html 文件类型中传递隐藏值


Pass hidden values in html file type

我不确定我的想法是否正确。是否可以在html中的文件类型中传递一个文件的默认值。像下面一样

 <input type="file" name="bulk_images_<?php echo $OrderProduct->orders_products_id?>'[]" value="<?php echo $OrderProduct->bulk_images; ?>" />

这样我就会把它弄进去

$_FILES[姓名]

属性

试试

bulk_images_[<?php echo $OrderProduct->orders_products_id?>]