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