代码示例:(标识:eg_html5_input_formaction)
<!DOCTYPE HTML>
<html>
<body>

<form action="/index/demo/form_current.html" method="get">
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="/index/demo/form_current.html" value="以管理员身份提交" />
</form>

</body>
</html>
运行结果: