bjtilley
bjtilley

Reputation: 1970

PHP scripts stops

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

Upvotes: 0

Views: 114

Answers (1)

poke
poke

Reputation: 387667

Try separating those two commands:

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

Upvotes: 1

Related Questions