我的网站允许用户实时编辑它。我在某些区域遇到问题,当您提交表单时它不会改变,直到我重新启动页面
所以它只显示在数据库中有文本的图标,当我添加一个新链接并提交它时,它会更改后端中的值,并且应该在我重新启动带有标题的页面时在前面更改(“位置:admin.php” ); (见下文) http://snag.gy/lmR8s.jpg
如果我按刷新它会尝试再次发送数据。我要做的是单击 url 并输入以重新启动页面及其所做的更改 http://snag.gy/vDI90.jpg
$submitSocial = $_POST['submitSocial'];
if(empty($submitSocial)){
include("includes/social.php");
} else{
$submitFB = $_POST['fb'];
$submitTW = $_POST['tw'];
$submitYT = $_POST['yt'];
$submitLI = $_POST['li'];
$submitTL= $_POST['tl'];
$submitFL= $_POST['fl'];
$changeSocial = $change->changeSocial($userID, $siteID, $submitFB, $submitTW, $submitYT, $submitLI, $submitTL, $submitFL );
if($changeSocial){
include("includes/social.php");
header("Location: admin.php");
} else{
header("Location: N/A.php");
}
}
无论如何,这是因为我需要它重新加载第一次更改的内容?