Quote:
Originally Posted by TigerC10
|
hmm i see you didnt read the whole question, i did read that post however and tried the
Code:
header("Location: http://www.example.com/");
but when i tried it i got an error at the top of my page saying
Code:
Warning: Cannot modify header information - headers already sent by (output started at /home/*******/public_html/mysite.co.uk/contactus.php:2) in /home/*******/public_html/mysite.co.uk/contactus.php on line 28
so my question i asked was how i could, when my submit button is pressed and everything is filled in corretly and fine i get the thankyou.php page
but if there is an error i get directed tio an error.php page
but thank you for your reply either way