【发布时间】:2016-04-14 21:59:13
【问题描述】:
我在一个页面上有多个表单,这些表单使用 PHP 从 Mysql 数据库中动态填充。
每个表单都将数据发布到允许用户“查看更多详细信息”的新页面——该页面在新选项卡中打开。
这是我的问题 - 当用户点击“查看更多详细信息”时,它会在新选项卡中打开,但如果他们返回并选择另一个奖学金,它会在已打开的同一选项卡中打开。我希望用户能够为页面中的每个奖学金一次打开多个选项卡。
这是一个小提琴:https://jsfiddle.net/tcanfarotta22/x64q0597/
这是一个示例表格
<div class='list' style='width:1750px; margin:0 auto;'>
<form action='singleview.php' method='post' target='_new'>
<table id='scholarship' style='float:left;' align='center'>
<thead>
<th class='head' colspan='3' style='text-align:center;'>University of Michigan--Dearborn
<br>
<br>Full Tuition
<br>
<br>Public
<br>
<br>
<input type='hidden' name='id' value='ARLUJ'>
<input type='submit' value='View More Details'>
<br>(Will Open in a New Tab)</th>
</thead>
</form>
</table>
</div>
<div class='list' style='width:1750px; margin:0 auto;'>
<form action='singleview.php' method='post' target='_new'>
<table id='scholarship' style='float:left;' align='center'>
<thead>
<th class='head' colspan='3' style='text-align:center;'>University of Michigan--Dearborn
<br>
<br>$1,500
<br>
<br>Public
<br>
<br>
<input type='hidden' name='id' value='BNAOT'>
<input type='submit' value='View More Details'>
<br>(Will Open in a New Tab)</th>
</thead>
</form>
</table>
</div>
【问题讨论】: