cancel
Showing results for 
Search instead for 
Did you mean: 

problem with header function

N/A

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: http://cgi.tammclaughlin.force9.co.uk/cgi-bin/question_type.php?question=1&quizname=$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?
1 REPLY
N/A

RE: problem with header function

> header ("Location: http://cgi.tammclaughlin.force9.co.uk/cgi-bin/question_type.php?question=1&quizname=$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?