I;当用户按下后退按钮时出现问题,他们输入的值显示在batch_number字段中,但是如果你输入一个新的号码,那么它总是在那里,在该条目应该被覆盖之前,在该条目仍然存在之前按回一个号码
sec_session_start();
if(!isset($_SESSION['batch_number']))
{
$batch_number = $_POST['batch_number'];
$_SESSION['batch_number'] = $batch_number;
}
<td colspan="4">
<input type="text" class="form-control" name="batch_number"id="batch_number"
value="<?php echo $_SERVER['batch_number']; ?>"/>
</td>