Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/231.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 在注册表单中添加单选按钮_Php - Fatal编程技术网

Php 在注册表单中添加单选按钮

Php 在注册表单中添加单选按钮,php,Php,我在plus2net网站上找到了一个完整的注册表格代码 我需要在上面的表单中再添加一个单选按钮。请帮助我如何我应该添加一个单选按钮,它也应该写在数据库中的数据 告诉我应该在现有代码中的何处添加代码 提前谢谢 以下是现有代码: <div class="col-md-12 margin-bottom-15"> <label for="department" class="col-sm-2 control-label">Department</label>

我在plus2net网站上找到了一个完整的注册表格代码

我需要在上面的表单中再添加一个单选按钮。请帮助我如何我应该添加一个单选按钮,它也应该写在数据库中的数据

告诉我应该在现有代码中的何处添加代码

提前谢谢

以下是现有代码:

<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>
根据您的代码:

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

到现在为止你做了什么?如果不行,只需自己编写函数代码或插入普通html/php代码:-Dshow您的html代码。您还需要哪种类型的单选按钮?部门CKGS CNK
            <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.