首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Bootswatch主题不提交表单数据

Bootswatch主题不提交表单数据
EN

Stack Overflow用户
提问于 2014-04-24 06:17:07
回答 1查看 334关注 0票数 0

我有自靴斯沃琪的流明主题。一切看起来都很好,除了我的表格从来不提交任何数据.它会转到动作页面,但从不发送任何数据.他是完整的密码..。

代码语言:javascript
复制
<!DOCTYPE html>
<html>
<title>Some Title
</title>
<link rel="stylesheet" type="text/css" href="bootstrap.css">
<body>

<div class="container">
        <div class="row">
          <div class="col-lg-12">
            <div class="page-header">
              <h1 id="container">Some Heading</h1>
            </div>
            <div class="bs-component">
              <div class="jumbotron">
                <h1>Incident Management System</h1>
                <p> Some heading</p>
                <p><a class="btn btn-primary btn-lg">Learn more</a></p>
              </div>
            </div>
          </div>
        </div>
</div>
 <div class="container">
            <div class="row">
          <div class="col-lg-8">
            <div class="panel panel-success">
  <div class="panel-heading">
    <h3 class="panel-title">Submit a ticket</h3>
  </div>
  <div class="panel-body">
<form class="form-horizontal" id="insertForm" method="post" action="addincident.php">
  <fieldset>
    <legend>We need few details!</legend>
    <div class="form-group">
      <label for="inputUserName" class="col-lg-2 control-label">Username</label>
      <div class="col-lg-10">
        <input type="text" class="form-control" id="inputUserName" placeholder="Enter your username">
      </div>
    </div>
    <div class="form-group">
      <label for="inputstudentID" class="col-lg-2 control-label">Student ID</label>
      <div class="col-lg-10">
        <input type="text" class="form-control" id="inputStudentID" placeholder="Enter your Student ID">
      </div>
    </div>
    <div class="form-group">
      <label for="inputStudentEmail" class="col-lg-2 control-label">Student EMail</label>
      <div class="col-lg-10">
        <input type="text" class="form-control" id="inputStudentEMail" placeholder="Enter your Student Email ID">
      </div>
    </div>
        <div class="form-group">
      <label for="selectRoomNo" class="col-lg-2 control-label">Room Number</label>
      <div class="col-lg-10">
        <select class="form-control" id="selectRoomNo">
          <option>S114D</option>
          <option>S118B</option>
          <option>S118E</option>
          <option>S120</option>
          <option>S114B</option>
        </select>
      </div>
    </div>
    <div class="form-group">
      <label for="textAreaRoomPosition" class="col-lg-2 control-label">Location of machine</label>
      <div class="col-lg-10">
        <textarea class="form-control" rows="3" id="textAreaRoomPosition"></textarea>
        <span class="help-block">Explain to the best of your knowledge the location of the issue in the lab.</span>
      </div>
    </div>
    <div class="form-group">
      <label for="textAreaRoomPosition" class="col-lg-2 control-label">Issue\Incident</label>
      <div class="col-lg-10">
        <textarea class="form-control" rows="3" id="textAreaRoomPosition"></textarea>
        <span class="help-block">Explain to the best of your knowledge the issue you are facing. Try to be as detailed as possible.</span>
      </div>
    </div>
    <div class="form-group">
      <div class="col-lg-10 col-lg-offset-2">
        <button class="btn btn-default">Cancel</button>
        <button type="submit" class="btn btn-primary">Submit</button>
      </div>
    </div>
  </fieldset>
</form>
  </div>
</div>
</div>
          <div class="col-lg-4">
            <div class="panel panel-info">
  <div class="panel-heading">
    <h3 class="panel-title">Information</h3>
  </div>
  <div class="panel-body">
    Upon recieving the ticket, we will assign it to a designated technician who will then solve the case. You can view the solution of the incident once it is posted.
  </div>
</div>
</div>
</div>
</div>
</body>
</html>
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2014-04-24 07:12:38

它缺少了“名称”属性;

改变这一点:

代码语言:javascript
复制
<input type="text" id="inputUserName">

像这样的事情:

代码语言:javascript
复制
<input type="text" name="inputUserName" id="inputUserName">
票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/23261189

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档