Bootstrap表格不起作用

时间:2015-08-11 07:24:09

标签: php html twitter-bootstrap

我从http://getbootstrap.com获取表单示例,并添加隐藏的输入。 result.php文件中包含$_REQUEST。我看到隐藏的价值。

 <form class="form-horizontal" role="form" action="/requests/result.php" method="post">
        <div class="form-group" id="formGroupSubject">
            <label for="inputSubjectx" class="col-sm-2 control-label">Тема</label>
            <div class="col-sm-10">
            <input type="text" class="form-control" id="inputSubjectx" placeholder="Тема заявки" value="title" />
            <span id="errorBlockSubject" class="help-block"></span>
        </div>
     </div>
<input type="hidden" name="iblockId" value="'.$arFields["IBLOCK_ID"].'" />
      <div class="form-group" >
        <div class="col-sm-offset-9 col-sm-2" col-sm-offset-1>
          <button type="submit" class="btn btn-primary">Send</button>
        </div>
      </div>
    </form>

1 个答案:

答案 0 :(得分:3)

其他name字段没有input属性。向他们添加name

<input type="text" class="form-control" id="inputSubjectx" placeholder="Тема заявки" value="title" name="inputSubjectx"> // Or whatever it should be