我需要一个帮助。我需要在使用PHP提交表单后重新加载页面。我在下面解释我的代码。使用PHP和Javascript提交表单后重新载入页面
$insert = $this->modl_obj->db_insert('db_newsletter',$values, $columns);
if($insert !=false){
$GLOBALS['msg']='1';
}
function messagestatus(st){
switch(st)
{
case 1:
{
alert("Inserted Successfully.");
break;
}
}
}
messagestatus(<?php echo $GLOBALS['msg'] ?>);
在这里,我需要重新加载警告消息后的页面。这种形式出现在以下链接的许多页面中。
http://localhost/takeme
http://localhost/takeme/about
请帮我解决这个问题。
使用位置.reload();'。在提醒后写下来。 –