I have a form, which is processed with PHP. At the end of my processing this happens:
Which isn't perfect, as sometimes i get "Header already sent..." messages etc. I was wondering if there is a better way to do this?
PHP:
if($mailto=="Nobody") {
header('Location: http://domain.com/doku.php?id=request:generated&mailto=' . $mailto . '&urltofile=' . $urltofile);
}
else {
include 'send_mail.php';
header('Location: http://domain.com/doku.php?id=request:submitted&mailto=' . $mailto . '&urltofile=' . $urltofile);
}
Which isn't perfect, as sometimes i get "Header already sent..." messages etc. I was wondering if there is a better way to do this?