if ($insert == 1) {
header("thankyou.php");
}
else {
header("error.php");
}
Meine Güte, ich muss wohl schon sehr müde sein. Setze in die header-Funktion bitte statt "thankyou.php" eher "Location: thankyou.php" ein, sonst funktionierts wohl nicht. Selbiges gilt für error.php.
Und nun ab ins Bett ;-)
Korrigierende Grüße,
Tom