Showing results for 
Search instead for 
Did you mean: 

problem with header function


problem with header function

I am having problems getting the header function to work properly. This works ok under my home linux apache config but not under f9. The code is:

header ("Location:$quizname") or die ("Can't go to location ");

I just get the msg in the die function and no errors in my log files.

Any ideas?

RE: problem with header function

> header ("Location:$quizname") or die ("Can't go to location ");
> Any ideas?

Have you tried it without the or die, and are you sure that you haven't output any white space before calling the header function?