抱歉,如果我要问的是一个愚蠢的问题,但我一直在阅读并尝试可用的代码,但它们都不起作用。这是我了解存储多个复选框值的链接
我有一个带有多个复选框的表单,我需要将值存储到数据库中。我现在的问题是它一直弹出这个错误
解析错误:语法错误,意外的“$chk”(T_VARIABLE),期待“)”
下面是我的代码
notification_form.php
<div class="form-group row">
<label class="col-md-2 col-form-label">Potential Escalation: </label>
<div class="col-md-5">
<input type="checkbox" id="potential_escalation[]" value="Under control with available resources. No potential of escalation" /> <text>Under control with available resources. No potential of escalation.</text>
</div>
<div class="col-md-5">
<input type="checkbox" id="potential_escalation[]" value="May requires additional resources (e.g. authorities, contractors, mutual aid groups)." /> <text>May requires additional resources (e.g. authorities, contractors, mutual aid groups).</text>
</div>
</div>
<div class="form-group row">
<label class="col-md-2 col-form-label"></label>
<div class="col-md-5">
<input type="checkbox" id="potential_escalation[]" value="Authorities may take over command and control" /> <text>Authorities may take over command and control.</text>
</div>
<div class="col-md-5">
<input type="checkbox" id="potential_escalation[]" value="May triggers significants authorities/ public community/ media interest." /> <text>May triggers significants authorities/ public community/ media interest.</text>
</div>
</div>
白衣染霜花
相关分类