编辑你的代码:
<!DOCTYPE html> <html> <body> <form action="/html5/tryit/demo_post_enctype" method="post"> First name: <input type="text" name="fname"><br> <input type="submit" value="提交"> <input type="submit" formenctype="multipart/form-data" value="复合类型提交"> </form> <p><strong>注意:</strong> input标签的formenctype属性不支持IE9和更早的IE更早版本.</p> </body> </html>
查看结果:
phpxuexi.net
- 亲自试一试