编辑你的代码:
<!DOCTYPE html> <html> <body> <form action="/html5/tryit/demo_form"> First name: <input type="text" name="fname"><br> Last name: <input type="text" name="lname"><br> <input type="submit" value="提交"><br> <input type="submit" formaction="/html5/tryit/demo_form" value="管理员提交"> </form> <p><strong>注意:</strong> input标签的formaction属性不支持IE9及以前的IE版本.</p> </body> </html>
查看结果:
phpxuexi.net
- 亲自试一试