donglang9880 2015-01-05 12:55
浏览 17

以注册形式添加单选按钮

I have found a signup form complete code at the plus2net website (http://www.plus2net.com/php_tutorial/php_signup.php)

I need to add one more radio button in the above form. Please help me how should i add a radio button and it should also write the data in database.

Tell me where should i add my code in the existing code.

Thanks in advance.

Here's the existing code:

<div class="col-md-12 margin-bottom-15">
    <label for="department" class="col-sm-2 control-label">Department</label>
        <div class="col-sm-10">
            <label class="radio-inline"><input type="radio" name="department" value="ckgs" checked> CKGS </label>
            <label class="radio-inline"><input type="radio" name="department" value="cnk"> CNK </label>
        </div>
</div>
  • 写回答

1条回答 默认 最新

  • dprntkxh703029 2015-01-05 14:33
    关注

    As per your code:

    <div class="col-md-12 margin-bottom-15">
        <label for="department" class="col-sm-2 control-label">Department</label>
            <div class="col-sm-10">
                <label class="radio-inline"><input type="radio" name="department" value="ckgs" checked> CKGS </label>
                <label class="radio-inline"><input type="radio" name="department" value="cnk"> CNK </label>
            </div>
    </div>
    

    For the third Radio Button with Value sty you just need to add:

                <label class="radio-inline"><input type="radio" name="department" value="sty"> STY </label>
                                                                                         ^^^   ^^^
                                                    Change the above to whatever value you want for the radio button.
    
    评论

报告相同问题?

悬赏问题

  • ¥20 求个正点原子stm32f407开发版的贪吃蛇游戏
  • ¥15 正弦信号发生器串并联电路电阻无法保持同步怎么办
  • ¥15 划分vlan后,链路不通了?
  • ¥20 求各位懂行的人,注册表能不能看到usb使用得具体信息,干了什么,传输了什么数据
  • ¥15 Vue3 大型图片数据拖动排序
  • ¥15 Centos / PETGEM
  • ¥15 划分vlan后不通了
  • ¥20 用雷电模拟器安装百达屋apk一直闪退
  • ¥15 算能科技20240506咨询(拒绝大模型回答)
  • ¥15 自适应 AR 模型 参数估计Matlab程序