我已经阅读了很多其他问题,但我找不到解决方法。我的雇主要求我在患者出院时取下我的下拉选择部分。
所以,他让我删除了放电部分的下拉选择按钮,并要求只使用提交按钮更新表格。那我该怎么办?你们能给我一些指导吗?
提前感谢您的帮助。
以下是我的代码。
<form action="add_status_submit.php" method="POST" class='form-horizontal form-validate' id="bb">
<div class="control-group">
<label for="textfield" class="control-label">Patient : </label>
<div class="controls">
<select name="pid" id="select2" class='chosen-select form-control' data-rule-required="true">
<option value="">-- Please select --</option>
<?php
$query = "select * FROM ipd_p ORDER BY id DESC";
//echo $query;
$result = mysqli_query($con,$query);
if(mysqli_affected_rows($con)!=0){
while($row = mysqli_fetch_array($result,MYSQLI_ASSOC)){
echo "<option value='" . $row['pid']."'>" . $row['name'] . "</option>";
}
}
?>
</select>
</div>
</div>
<div class="control-group">
<label for="textfield" class="control-label">Discharged : </label>
<div class="controls">
<select name="dis" id="select" class='chosen-select form-control' data-rule-required="true">
<option value="">-- Please select --</option>
<option value="Available">Yes</option>
</select>
</div>
</div>
<div class='control-group 11'><label for='textfield' class='control-label'>Status :</label>
<div class='controls'><input type='text' name='details' class='input-large' data-rule-minlength=1 placeholder='Status' required></div>
</div>
<div class="form-actions">
<input type="submit" class="btn btn-primary" value="Submit">
</div>
</form>