我的问题是按钮不起作用,唯一发生的是它重新加载页面。在我的数据库中创建新按钮后,有没有人知道如何立即制作新按钮?
<form action="<?php $_SERVER['PHP_SELF'] ?>" method="post" class="index_head" id = "login_form" >
<?php
header('Cache-Control: no-cache');
header('Pragma: no-cache');
require "gettops.php";
$tops = getTops();
if(!empty($tops))
foreach ($tops as $top) {
if(isset($_POST[$top[0]]) && !empty($_POST[$top[0]]))
{
header("location:forgot_checkin.php");
}
?>
<input type="submit" Name="print" value="<?php echo $top[0]; ?>" class="btn btn-large btn-primary" />
<?php } //end foreach ?>
<input type="submit" Name="print" value="Download Excel" class="btn btn-large btn-primary">
<input type="submit" Name="print" value="Download Excel" class="btn btn-large btn-primary">
</form>