按钮提交下一步按钮

时间:2017-02-24 03:58:51

标签: javascript php html submit href

我试图将NEXT按钮和SUBMIT按钮设为一个按钮。我们能做到吗 ?这是我的代码

抱歉,这是代码的一部分。此代码大约有5个已分配标记的问题。例如,如果您选中了第一列,则表示您正在检查8个标记。假设我的下一页是work_standard.php,它也包含问题。因为我的形式有计算,所以我需要将值提交给score.php,因为在回答问题之后,它将在score.php中进行总计

<html>
<form action="score.php"  method="post">
 <table class="hoverTable" style="width:80%" table align="center">

<td>Discipline</td>

<td>Well-Disciplined. Always set a high personal standard.
<br><br>
<label class='radiolabel'><input type="radio"  name="discipline" value="8"       <?php echo ($a==8 ? 'checked' : '');?> />8</label><br/>

</td>

<td>Very willing to do work. Respect rules and regulations.
<br><br>

<input type="radio" name="discipline" value="7" > 7
<input type="radio" name="discipline" value="6"> 6<br>

</td>

<td>Generally willing to do work. Do not give too much trouble.
<br><br>

<input type="radio" name="discipline" value="5" > 5
<input type="radio" name="discipline" value="4"> 4
<input type="radio" name="discipline" value="3">3
</td>

<td>Often shows unwillingness to do work. Discard rules if encouraged by          others.
<input type="radio" name="discipline" value="2" > 2
<input type="radio" name="discipline" value="1"> 1
</td>

<td>No respect for Company’s rules. Always gives excuses to orders.
<br><br>

<input type="radio" name="discipline" value="0" > 0
</td>
</tr>
</table>
<div class="container">              
<ul class="pager">
<li><a href="firstpage.php">Previous</a></li>
<li><a href="work_standard.php">Next</a></li>
</ul>
</div>
</form>
</html>

1 个答案:

答案 0 :(得分:0)

好吧,你可以使用这个方法:

<a href="http://www.microsoft.com" target="_blank" 
onclick="window.open('http://www.google.com'); 
window.open('http://www.yahoo.com');">Click Here</a>

您的回答:

 <a href="firstpage.php" target="_blank" 
    onclick="window.open('work_standard.php'); ">Next</a>