I am having a problem with URL redirection using a mail submission form.
The form is working and sends the mail successfully, the problem lies when I try to redirect the user to a thankyou.php page using header('Location: http://whatever.com/thankyou.php');
When the form is filled in and submitted, the mailform.php page executes but the redirection does not occur, I just get the blank page mailform.php.
Searching the web over my syntax for the header() script looks correct, is there anyway to debug this to see what exactly is occurring? Do I need to do anything on the server side in order to allow this function to work properly?
thanks in advance,