繁体   English   中英

按钮旁边的按钮提交

[英]Button next as button 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>

您可以更改提交EX的名称:

<form name="theform" action="work_standard.php" method="post">
<input type="text" />
<input type="submit" name="submit" value="Next"> // this would change your button text to next.
</form><form name="prevform" action="firstpage.php" method="post">
<input type="submit" name="prev" value="Previous"></form>

好吧,您可以使用以下方法:

<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>

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM