我有我的网站的超级用户的php页面,其中包含表单。当超级用户在表单中输入日期并按提交时,新信息发送到新页面并在表格中显示其他用户输入的数据。有没有办法按刷新按钮刷新这个新页面?
当我按下刷新时,内容不会更改,也不会显示用户输入的新数据。
<form action="profilehesread1410.php" method="post">
<fieldset class="m1410-info">
<h4>لطفا تاریخ مورد نظر را در شش رقم بصورت yymmdd وارد نمایید </h4>
<input type="text" name="m1" placeholder="تاریخ در شش رقم">
</fieldset>
<fieldset class="account-action">
<input class="btn" type="submit" name="submit" value="بازیابی">
</fieldset>
</form>
profilehesread1410.php的2代码
<?php
$date=$_POST['m1'];
include 'db.php';
$result = mysqli_query($connection,"SELECT branch,time,username,date,amount FROM hes WHERE date='$date' ORDER BY branch ");
$rows = mysqli_num_rows($result);
?>
<table>
<button class="btn-chap" onclick="myfunction()"> چاپ</button> <br> <br>
<script>
function myfunction(){
javascript:window.print();
}
</script>
<tr>
<th>ردیف </th>
<th>کد شعبه </th>
<th>تاریخ </th>
<th>ساعت </th>
<th>شماره پرسنلی </th>
<th>مبلغ </th>
</tr>
<?php
$rownum=1;
while($row = mysqli_fetch_array($result,MYSQLI_BOTH))
{
echo "<tr>\n ";
echo "<td>";
echo $rownum ;
echo "</td>\n ";
echo "<td>";
echo $row['branch']. str_repeat(' ', 5) ;
echo "</td>\n ";
echo "<td>";
echo $row['date'] . str_repeat(' ', 5);
echo "</td>\n ";
echo "<td>";
echo $row['time'] . str_repeat(' ', 5);
echo "</td>\n ";
echo "<td>";
echo $row['username'] . str_repeat(' ', 5);
echo "</td>\n ";
echo "<td>";
echo number_format($row['amount']) . str_repeat(' ', 5);
echo "</td>\n ";
echo " </tr>\n ";
$rownum=$rownum+1;
}
?>
</table>