在表單中加入「表單欄位」:
<form class="form-horizontal" action="index.php" method="post" role="form">
<div class="form-group">
<label class="col-md-4 control-label" for="name">帳號:</label>
<div class="col-md-8">
<input type="text" name="name" id="name" placeholder="請輸入帳號" class="form-control">
</div>
</div>
<div class="form-group">
<label class="col-md-4 control-label" for="passwd">密碼:</label>
<div class="col-md-8">
<input type="password" name="passwd" id="passwd" placeholder="請輸入密碼" class="form-control">
</div>
</div>
<div class="text-center">
<input type="hidden" name="op" value="login">
<button type="submit" name="button" class="btn btn-primary">登入</button>
</div>
</form>