我正在尝试添加重定向网址以在着陆页上的电子邮件表单上提交按钮

时间:2016-01-07 22:30:24

标签: html forms

我有2个表单电子邮件和名称提交表单我正在修改广告系列。我非常喜欢我正在使用的模板,只是我从未收到过将URL重定向附加到表单第二部分的提交按钮的说明。

以下是表单的代码。

如何将我的网址附加到按钮上?

<!-- form -->
<!--[if IE 9 | lt IE 9]><label for="name" class="label">Enter Your Full Name Here</label><![endif]-->
<input type="text" name="name" id="name" placeholder="Enter Your Full Name Here"/>
<!--[if IE 9 | lt IE 9]><label for="email" class="label">Enter a Valid Email Here</label><![endif]-->
<input type="text" name="email" id="email" placeholder="Enter a Valid Email Here" />
<button type="submit" class="btn-flat">Sign Up To Get Access</button>
<p class="privacy">Your privacy is safe! We will never spam you.</p>
</form><!-- /end form -->

1 个答案:

答案 0 :(得分:0)

为您的按钮添加网址;

<form action="http://www.yourWebsite.com">
    <button type="submit" class="btn-flat">Sign Up To Get Access</button>
</form>

将输入框粘在按钮上方,点击此按钮即可转至www.yourWebsite.com。