[英]I want my html page to redirect to another html page when I submit a certain input how can i do that
strong text I need the html page to go to another page when i submit a certain input强文本当我提交某个输入时,我需要 html 页面到 go 到另一个页面
This can be done via HTML forms.这可以通过 HTML forms 来完成。 you need to use the action(where you want to redirect page) and method(GET,POST) attribute in form.您需要在表单中使用操作(要重定向页面的位置)和方法(GET,POST)属性。 for example例如
<form action="www.example.com" method="post">
<input type="text" name="firstname">
<input type="submit" name="submit">
</form>
on clicking submit it will redirect to the URL given in the action attribute.单击提交时,它将重定向到 action 属性中给出的 URL。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.