Site Admin
Joined: 13 Jul 2003 |
Posts: 8351 |
|
|
 |
Posted: Sat Mar 27, 2021 11:40 am |
|
 |
 |
 |
 |
hmm, your script is not producing any output, except header. So the page in the browser, if you open it in a browser, is expected to be blank.
If your intent to get web browser redirected to another page and send next request to login.php, you probably want to say that this login.php is new location and provide correct URI for that.
Header function is a generic header producer. For instance it can send 404 status, like header("HTTP/1.0 404 Not Found"); and can't guess for you that what you have there is new location. If location is what you need, say so: header("Location: ../books/login.php", true, 302);
|
_________________ The PHP IDE team
|