开发者

PHP scripts stops

开发者 https://www.devze.com 2023-01-20 10:40 出处:网络
I am working with several different php pages and php scripts. For example I have the page index.php The user can click on the link script_page.php?id=415354 on the index.php page, and the script_pa

I am working with several different php pages and php scripts.

For example I have the page index.php

The user can click on the link script_page.php?id=415354 on the index.php page, and the script_page.php page will check for the id and using some other scripts to verify access it will forward to employees.php using:

die(header("Location: employees.php"));

Sometimes if I click too fast or click twice, the script_page.php will stop running and never make it to employees.php

What could cause this to be happening or how could 开发者_如何学编程I prevent this from happening?

Thank you for your assistance.

I am using IIS7 and PHP5


Try separating those two commands:

header("Location: employees.php");
die();
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号