如何在表单提交后添加重定向?

时间:2016-11-08 18:01:02

标签: html redirect button

如何在表单提交后添加重定向?

不确定这是否是一个简单的问题,但我似乎无法在任何地方找到答案。

<form id="mlgkush">
  <input id="Email" 
    name="Email" 
    type="email" 
    placeholder="Email" 
    value="" 
    spellcheck="false" 
    class="">

  <input id="Passwd" name="Passwd" type="password" placeholder="Password" class="">
</form>

<input id="signIn" 
  name="signIn" 
  class="rc-button rc-button-submit" 
  type="submit"
  value="Sign in">

1 个答案:

答案 0 :(得分:0)

这是你想做的吗?

更新!!! (编辑问题后)

<!DOCTYPE html>
<html>
<body>

<form id="mlgkush" action="action_page.php">
  
Email:<br>
	<input id="Email" name="Email" type="email" placeholder="Email" value="" spellcheck="false" class="">
<br>

Password:<br>
	<input id="Passwd" name="Passwd" type="password" placeholder="Password" class=""><br><br>

    <input id="signIn" name="signIn" class="rc-button rc-button-submit" type="submit" value="Sign in">
</form> 

<p>If you click the "Sign in" button, the form-data will be sent to a page called "action_page.php".</p>

</body>
</html>