Results 1 to 6 of 6

Thread: How to redirect after contact form submit?

  1. #1
    Thread Starter
    jlapptheme's Avatar
    Join Date
    Nov 2010
    Location
    United States
    Posts
    4
    Thanks
    1
    Thanked 0 Times in 0 Posts

    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.

  2. #2
    jomarkosabel's Avatar
    Join Date
    Mar 2009
    Location
    Philippines
    Posts
    40,702
    Thanks
    166
    Thanked 3,390 Times in 3,261 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    Please help our moderating team work more efficiently by not sending us support questions via PM. You can read more about how AppThemes support works here. However, you can send a PM to follow up and remind me if I missed your support request/thread.

    Thank you and have a nice day.

  3. #3
    Thread Starter
    jlapptheme's Avatar
    Join Date
    Nov 2010
    Location
    United States
    Posts
    4
    Thanks
    1
    Thanked 0 Times in 0 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  4. #4
    jomarkosabel's Avatar
    Join Date
    Mar 2009
    Location
    Philippines
    Posts
    40,702
    Thanks
    166
    Thanked 3,390 Times in 3,261 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    Please help our moderating team work more efficiently by not sending us support questions via PM. You can read more about how AppThemes support works here. However, you can send a PM to follow up and remind me if I missed your support request/thread.

    Thank you and have a nice day.

  5. #5
    Thread Starter
    jlapptheme's Avatar
    Join Date
    Nov 2010
    Location
    United States
    Posts
    4
    Thanks
    1
    Thanked 0 Times in 0 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  6. #6
    jomarkosabel's Avatar
    Join Date
    Mar 2009
    Location
    Philippines
    Posts
    40,702
    Thanks
    166
    Thanked 3,390 Times in 3,261 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    Please help our moderating team work more efficiently by not sending us support questions via PM. You can read more about how AppThemes support works here. However, you can send a PM to follow up and remind me if I missed your support request/thread.

    Thank you and have a nice day.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. How to clear the contact-the-ad-poster form after SUBMIT?
    By classipert in forum ClassiPress General Discussion
    Replies: 7
    Last Post: May 18th, 2011, 08:39 AM
  2. [SOLVED] Problem with Contact Form (Contact Advertiser)
    By barukar in forum Help Using ClassiPress
    Replies: 11
    Last Post: January 7th, 2011, 06:15 PM
  3. Contact form not show up after submit comment
    By vincent in forum Report ClassiPress Bugs
    Replies: 4
    Last Post: November 23rd, 2010, 03:43 AM
  4. can't adjust submit-job-form.php in child theme
    By jns120 in forum Report JobRoller Bugs
    Replies: 1
    Last Post: October 22nd, 2010, 11:22 AM