How to redirect after contact form submit?
I am trying to redirect visitors to a different web page after they post a comment on
the sidebar comment form in the Classipress theme. I have tried to add the following line of code after the first if statement in the Sidebar-Contact.php file:
if (isset($_POST['submit']) && $_POST['send_email'] == 'yes') {
header('Location:
http://domain.com');
However I recieve the following error at the top of the sidebar contact form"
"Warning: Cannot modify header information - headers already sent by (output started...".
Does anyone know if and how this can be done? I would greatly appreciate any help.