Html 表单提交打开新标签/窗口?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/13786414/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-29 04:16:49 来源:igfitidea点击:
Form Submission Opens New Tab/Window?
提问by New in php
Possible Duplicate:
submit a form in a new tab
可能重复:
在新选项卡中提交表单
How can i open a new window when i submit one form?
当我提交一份表格时,如何打开一个新窗口?
<form method="post" action="<?php echo $PHP_SELF;?>">
First Name:<input type="text" size="12" maxlength="12" name="Fname">:<br />
Last Name:<input type="text" size="12" maxlength="36" name="Lname">:<br />
<input type="submit">
</form>
回答by Sibiraj PR
you can use code like this
你可以使用这样的代码
<form action="#" method="post" target="_blank">
...
</form>