我使用标题在提交后显示成功消息。我还想在5秒后将用户重定向到索引.php页面,但不知何故它不起作用。
if(mysqli_query($link, $sql)){
header("Location: addbusiness.php?message=<div class='alert alert-success' role='alert' style='text-align: center; margin-bottom: 50px;'>Succes.</div>");
header( "refresh:5;url=index.php" );
} else{
echo "ERROR: Could not able to execute $sql. " . mysqli_error($link);
}
慕哥9229398
慕斯王
随时随地看视频慕课网APP