Discussion Locked

Redirection problem

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I'm new to PHP
I used the following code

header("location:somepage.php");
----------------------------------
The alert was never fired when i executed the code. If commented the header statement,
it worked.
could someone provide me an explain this behaviour and a possible solution to this

3 replies

by andrew

I don't know PHP either (I do ASP), but at the risk of embarassing myself, I'll take a stab at this.

Is the code in the

or you can post the page back to the server and execute a header().

I hope I'm not way off base with this, and just confused you further.

This discussion is closed to new replies.