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();
精彩评论