How can I redirect back to my starting page with PHP to clear my GET parameters? I have made a form that once filled out will be sent to a .php file that handles the GET data and saves it to a database. After that I am using header("Location: redirect.php") which then again redirects to ("Location: main.php"). After these are both executed I get sent back to something that looks like the main page but instead I get the url formSaver.php?alot=ofparamters when I get back. If I click something I will get into the main.php part and it works. But if someone hits F5 before they click anything I will get double entries. Anyone know what I have done wrong?
2条回答 默认 最新
- doushui20090526 2012-07-19 07:33关注
header( "Location: http://www.your-site.com/" ); die;
本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报