Home >Backend Development >PHP Tutorial >post方法提交表单 如何获取文件
<form method="post" action="execute.html?m=&a=designer&f=designerList"> <input type='file' name="test"> <button type="submit">提交</button> </form>
public function designerList() { echo "<pre class="brush:php;toolbar:false">"; print_r($_POST); print_r($_FILES); }