我有一个PHP页面,其上有几个HTML问题,每个问题都有一个“类型”,并且您在1的范围内回答该问题-5,在下面的例子中将会有3个问题类型:A,B,& C.如何为每个问题“类型”添加总分数(分数从每个以下的1-5个单选按钮问题),然后将这些总分数存储为PHP变量?各类问题的单选按钮评分系统,在末尾添加分数
这里是HTML代码,我没有CLUE从哪里开始,但我需要做这件事,我们很快就要做一个学校活动,我不想让他们失望:)哈哈!感谢所有帮助人员,抱歉,我对HTML表单知之甚少!不管怎么说,这里的HTML代码时,PHP可以去任何地方,我没有写它尚未/:哈哈:
Type A rating:
<br>
<form action="" method="post">
1
<input type="radio" name="select" value="1">
<input type="radio" name="select" value="2">
<input type="radio" name="select" value="3">
<input type="radio" name="select" value="4">
<input type="radio" name="select" value="5">
5
</form>
<br><br>
Type B rating:
<br>
<form action="" method="post">
1
<input type="radio" name="select" value="1">
<input type="radio" name="select" value="2">
<input type="radio" name="select" value="3">
<input type="radio" name="select" value="4">
<input type="radio" name="select" value="5">
5
</form>
<br><br>
Type A rating:
<br>
<form action="" method="post">
1
<input type="radio" name="select" value="1">
<input type="radio" name="select" value="2">
<input type="radio" name="select" value="3">
<input type="radio" name="select" value="4">
<input type="radio" name="select" value="5">
5
</form>
<br><br>
Type C rating:
<br>
<form action="" method="post">
1
<input type="radio" name="select" value="1">
<input type="radio" name="select" value="2">
<input type="radio" name="select" value="3">
<input type="radio" name="select" value="4">
<input type="radio" name="select" value="5">
5
</form>
<br><br>
Type A rating:
<br>
<form action="" method="post">
1
<input type="radio" name="select" value="1">
<input type="radio" name="select" value="2">
<input type="radio" name="select" value="3">
<input type="radio" name="select" value="4">
<input type="radio" name="select" value="5">
5
</form>
<br><br>
Type B rating:
<br>
<form action="" method="post">
1
<input type="radio" name="select" value="1">
<input type="radio" name="select" value="2">
<input type="radio" name="select" value="3">
<input type="radio" name="select" value="4">
<input type="radio" name="select" value="5">
5
</form>
<br><br>
Type B rating:
<br>
<form action="" method="post">
1
<input type="radio" name="select" value="1">
<input type="radio" name="select" value="2">
<input type="radio" name="select" value="3">
<input type="radio" name="select" value="4">
<input type="radio" name="select" value="5">
5
</form>
<br><br>
<input type="submit" name="Sum The Ratings" value="Vote">
要理解你的问题为什么关闭,请阅读[faq]和[ask] – 2012-02-20 06:11:38