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

<h1>input formaction 属性</h1>

<p>formaction 属性规定提交表单时对输入进行处理的的文件的 URL。</p>

<form action="/index/demo/form_current.html">
  <label for="fname">First name:</label>
  <input type="text" id="fname" name="fname"><br><br>
  <label for="lname">Last name:</label>
  <input type="text" id="lname" name="lname"><br><br>
  <input type="submit" value="提交">
  <input type="submit" formaction="/index/demo/form_current.html" value="以管理员提交">
</form>

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