道歉,如果这已经在其他地方得到解答 - 我找不到它!
我已经设置了一个单选按钮评级组,代码如下:
<section class= "col col-6">
<div class="rating">
<input type="radio" name="quality" id="quality-10">
<label for="quality-10"><i class="icon-star"></i></label>
<input type="radio" name="quality" id="quality-9">
<label for="quality-9"><i class="icon-star"></i></label>
<input type="radio" name="quality" id="quality-8">
<label for="quality-8"><i class="icon-star"></i></label>
<input type="radio" name="quality" id="quality-7">
<label for="quality-7"><i class="icon-star"></i></label>
<input type="radio" name="quality" id="quality-6">
<label for="quality-6"><i class="icon-star"></i></label>
<input type="radio" name="quality" id="quality-5">
<label for="quality-5"><i class="icon-star"></i></label>
<input type="radio" name="quality" id="quality-4">
<label for="quality-4"><i class="icon-star"></i></label>
<input type="radio" name="quality" id="quality-3">
<label for="quality-3"><i class="icon-star"></i></label>
<input type="radio" name="quality" id="quality-2">
<label for="quality-2"><i class="icon-star"></i></label>
<input type="radio" name="quality" id="quality-1">
<label for="quality-1"><i class="icon-star"></i></label>
How would you rate our product?
</div>
</section>
我的问题是当使用服务器端PHP脚本来处理结果时,我似乎无法深入研究$_POST['quality']
中“质量”值的值。当我回应时,我只是“开启”,表示已经选择了某些东西。
任何帮助表示赞赏。温柔善良的读者....
谢谢, 斯图尔特