重新加载包含传递值时更改URL

时间:2015-06-22 10:04:06

标签: php

我有以下代码

if ($description==""){
    header("location:..\initNewProject.php?state=-1");
}

和initNew project.php代码:

if ($state==-1)
    echo"<script>alert(\"kindly fill out the description\");</script>";

问题是当在此页面上刷新时,url保持不变并保持弹出警报 如何在刷新时将网址返回默认值?

0 个答案:

没有答案