Skip to main content

🛍️ BLACK FRIDAY get-one-give-one sale is underway. Don't miss $50 off PLUS a free subscription to gift a friend. 🤩

🚀 In our NEW AI Bootcamp you'll build a working app in 28 days, no experience required. Free to all subscription levels.

Join the Treehouse affiliate program and earn 25% recurring commission! 🤑

  • Treehouse Logo
    • For Individuals
    • For Businesses
    • For Schools
    • For Libraries
    • For Military
    • All Courses
    • Tracks
    • AI Bootcamp
    • College Credit
    • Techdegree Bootcamps
    • Front End Development
    • Full Stack JavaScript
    • Code Adventures
    • Discord
    • Forum
    • Success Stories
    • Treehouse Links
    • 100 Days of Code
    • Explore
    • Career Toolbox
    • Free Treehouse Near Me
    • Affiliates
    • Blog
    • Support
    • About
    • Learn
    • Beginner's Guide to Coding
    • Data Analysis with SQL & Python
    • Front-End Web Development
    • Python Programming Basics
    • Techdegree Bootcamp Overview
    • UX Design Fundamentals
    • AI Tools for Beginners
  • For Individuals For Businesses For Schools For Libraries For Military
  • All Courses Tracks AI Bootcamp College Credit
  • Techdegree Bootcamps Front End Web Development Full Stack JavaScript
  • Code Adventures Discord Forum Success Stories Treehouse Links 100 Days of Code
  • Explore Career Toolbox Free Treehouse Near Me Affiliates Blog Support About
    Learn Beginner's Guide to Coding Data Analysis with SQL & Python Front-End Web Development Python Programming Basics Techdegree Bootcamp Overview UX Design Fundamentals AI Tools for Beginners
  • Sign In
  • Free Trial
Instagram Twitter Facebook YouTube LinkedIn
Loading banner... Start your free trial at Treehouse
    • Newest
      • Newest
      • Active
      • Unanswered
      • Featured
    • All Topics
      • All Topics
      • • General Discussion
      • • AI
      • • APIs
      • • Coding for Kids
      • • College Credit
      • • Computer Science
      • • CSS
      • • Data Analysis
      • • Databases
      • • Design
      • • Development Tools
      • • Digital Literacy
      • • Game Development
      • • Go Language
      • • HTML
      • • Java
      • • JavaScript
      • • Learning Resources
      • • Machine Learning
      • • No-Code
      • • PHP
      • • Professional Growth
      • • Python
      • • Quality Assurance
      • • React
      • • Ruby
      • • Security
      • • Swift
      • • Vibe Coding
  • Forgmi Tuppleminsk
    PLUS
    Forgmi Tuppleminsk
    Courses Plus Student 1,786 Points

    How do I have the header redirect to a completely different page?

    Posted September 2, 2015 6:31am by Forgmi Tuppleminsk
    Forgmi Tuppleminsk
    Courses Plus Student 1,786 Points
    • PHP
    • Build a Simple PHP Application
    • Adding a Contact Form
    • Redirecting After a Form Submission

    5 Answers

  • Muhammad Yousef
    PLUS
    Muhammad Yousef
    Courses Plus Student 4,023 Points

    what is the function of header (); ?

    Posted July 4, 2015 3:50pm by Muhammad Yousef
    Muhammad Yousef
    Courses Plus Student 4,023 Points
    • PHP
    • Build a Simple PHP Application
    • Adding a Contact Form
    • Redirecting After a Form Submission

    1 Answer

  • melissa brown
    melissa brown
    4,670 Points

    what if i wanted to give the user and contact form number?

    Posted June 11, 2015 11:38am by melissa brown
    melissa brown
    4,670 Points
    • PHP
    • Build a Simple PHP Application
    • Adding a Contact Form
    • Redirecting After a Form Submission

    2 Answers

  • ahmed saleh
    ahmed saleh
    2,754 Points

    i have another idea , but i'm not sure if it's correct or even work ? title(Redirecting after form submission)

    Posted April 6, 2015 3:37pm by ahmed saleh
    ahmed saleh
    2,754 Points
    • PHP
    • Build a Simple PHP Application
    • Adding a Contact Form
    • Redirecting After a Form Submission

    1 Answer

  • gyatmnucla
    gyatmnucla
    7,618 Points

    Why use double quotes

    Posted February 4, 2015 2:42pm by gyatmnucla
    gyatmnucla
    7,618 Points
    • PHP
    • Build a Simple PHP Application
    • Adding a Contact Form
    • Redirecting After a Form Submission

    1 Answer

  • Phillip Gibson
    Phillip Gibson
    1,731 Points

    My form will not submit or re-direct

    Posted January 29, 2015 7:52pm by Phillip Gibson
    Phillip Gibson
    1,731 Points
    • PHP
    • Build a Simple PHP Application
    • Adding a Contact Form
    • Redirecting After a Form Submission

    1 Answer

  • orange sky
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    orange sky
    Front End Web Development Techdegree Student 4,945 Points

    Back button may process the form again and send a duplicate email??

    Posted January 25, 2015 1:32am by orange sky
    .a{fill-rule:evenodd;}techdegree
    orange sky
    Front End Web Development Techdegree Student 4,945 Points
    • PHP
    • Build a Simple PHP Application
    • Adding a Contact Form
    • Redirecting After a Form Submission

    4 Answers

  • SABCD ABCD
    SABCD ABCD
    3,414 Points

    [SOLVED]My header is displaying information that's supposed to be sent in the email, on the thank you page.

    Posted December 15, 2014 8:39am by SABCD ABCD
    SABCD ABCD
    3,414 Points
    • PHP
    • Build a Simple PHP Application
    • Adding a Contact Form
    • Redirecting After a Form Submission

    1 Answer

  • Jamaal Todd
    Jamaal Todd
    5,689 Points

    PHP header not redirecting

    Posted December 9, 2014 1:06am by Jamaal Todd
    Jamaal Todd
    5,689 Points
    • PHP
    • Build a Simple PHP Application
    • Adding a Contact Form
    • Redirecting After a Form Submission

    4 Answers

  • James Houston II
    James Houston II
    1,812 Points

    CSS not working properly on after sending contact information the banner starts half way down the page

    Posted December 2, 2014 4:59am by James Houston II
    James Houston II
    1,812 Points
    • PHP
    • Build a Simple PHP Application
    • Adding a Contact Form
    • Redirecting After a Form Submission

    0 Answers

  • Mike Zhu
    Mike Zhu
    1,840 Points

    PHP Redirecting using header(); NOT WORKING

    Posted November 8, 2014 8:20am by Mike Zhu
    Mike Zhu
    1,840 Points
    • PHP
    • Build a Simple PHP Application
    • Adding a Contact Form
    • Redirecting After a Form Submission

    4 Answers

  • Mike Zhu
    Mike Zhu
    1,840 Points

    PHP Header Redirecting Not Working

    Posted November 8, 2014 4:09am by Mike Zhu
    Mike Zhu
    1,840 Points
    • PHP
    • Build a Simple PHP Application
    • Adding a Contact Form
    • Redirecting After a Form Submission

    1 Answer

  • Alex Martin
    Alex Martin
    2,126 Points

    Why is he using ’ for apostrophes rather than just typing an apostrophe on the keyboard?

    Posted September 9, 2014 12:27pm by Alex Martin
    Alex Martin
    2,126 Points
    • PHP
    • Build a Simple PHP Application
    • Adding a Contact Form
    • Redirecting After a Form Submission

    2 Answers

  • Felix Bolton
    Felix Bolton
    2,750 Points

    redirection is not working?

    Posted August 6, 2014 10:53pm by Felix Bolton
    Felix Bolton
    2,750 Points
    • PHP
    • Build a Simple PHP Application
    • Adding a Contact Form
    • Redirecting After a Form Submission

    5 Answers

  • ilker senturk
    ilker senturk
    17,583 Points

    HEDAER() FUNCITON

    Posted July 28, 2014 12:59pm by ilker senturk
    ilker senturk
    17,583 Points
    • PHP
    • Build a Simple PHP Application
    • Adding a Contact Form
    • Redirecting After a Form Submission

    1 Answer

  • Penny Leyton
    Penny Leyton
    483 Points

    Redirecting after form submission doesn't work for me, even tho I copied code on the video. Worked before last stage

    Posted July 15, 2014 1:33am by Penny Leyton
    Penny Leyton
    483 Points
    • PHP
    • Build a Simple PHP Application
    • Adding a Contact Form
    • Redirecting After a Form Submission

    4 Answers

  • Jeremiah Swift
    Jeremiah Swift
    3,277 Points

    PHP Redirect to Contact-thanks.php doesn't seem to be working.

    Posted June 26, 2014 9:45pm by Jeremiah Swift
    Jeremiah Swift
    3,277 Points
    • PHP
    • Build a Simple PHP Application
    • Adding a Contact Form
    • Redirecting After a Form Submission

    1 Answer

  • lindseyfowler
    lindseyfowler
    4,526 Points

    Redirecting

    Posted June 18, 2014 8:28pm by lindseyfowler
    lindseyfowler
    4,526 Points
    • PHP
    • Build a Simple PHP Application
    • Adding a Contact Form
    • Redirecting After a Form Submission

    3 Answers

  • Alex Boltava
    Alex Boltava
    896 Points

    header() method has no effect

    Posted May 20, 2014 4:47pm by Alex Boltava
    Alex Boltava
    896 Points
    • PHP
    • Build a Simple PHP Application
    • Adding a Contact Form
    • Redirecting After a Form Submission

    3 Answers

  • Samuel Mamulaschwili
    Samuel Mamulaschwili
    9,935 Points

    Redirecting After a Form Submission: with Variables

    Posted April 22, 2014 9:36am by Samuel Mamulaschwili
    Samuel Mamulaschwili
    9,935 Points
    • PHP
    • Build a Simple PHP Application
    • Adding a Contact Form
    • Redirecting After a Form Submission

    1 Answer

  • Peter Garside
    Peter Garside
    7,233 Points

    Unexpected Result

    Posted April 13, 2014 4:47pm by Peter Garside
    Peter Garside
    7,233 Points
    • PHP
    • Build a Simple PHP Application
    • Adding a Contact Form
    • Redirecting After a Form Submission

    2 Answers

  • Adam Shockley
    Adam Shockley
    3,911 Points

    My PHP header refuses to redirect. Help!

    Posted April 1, 2014 6:10am by Adam Shockley
    Adam Shockley
    3,911 Points
    • PHP
    • Build a Simple PHP Application
    • Adding a Contact Form
    • Redirecting After a Form Submission

    3 Answers

  • Dimitris Tsioumas
    Dimitris Tsioumas
    1,649 Points

    header function not working

    Posted March 24, 2014 1:17am by Dimitris Tsioumas
    Dimitris Tsioumas
    1,649 Points
    • PHP
    • Build a Simple PHP Application
    • Adding a Contact Form
    • Redirecting After a Form Submission

    5 Answers

  • Scott Dunstan
    Scott Dunstan
    12,517 Points

    Header() not working?

    Posted March 16, 2014 5:41am by Scott Dunstan
    Scott Dunstan
    12,517 Points
    • PHP
    • Build a Simple PHP Application
    • Adding a Contact Form
    • Redirecting After a Form Submission

    3 Answers

  • iainfriend
    iainfriend
    4,439 Points

    Redirect header() bring up a blank page

    Posted February 25, 2014 4:06pm by iainfriend
    iainfriend
    4,439 Points
    • PHP
    • Build a Simple PHP Application
    • Adding a Contact Form
    • Redirecting After a Form Submission

    0 Answers

  • Zander Fields
    PLUS
    Zander Fields
    Courses Plus Student 5,458 Points

    Redirect doesn't seem to work

    Posted February 21, 2014 6:46pm by Zander Fields
    Zander Fields
    Courses Plus Student 5,458 Points
    • PHP
    • Build a Simple PHP Application
    • Adding a Contact Form
    • Redirecting After a Form Submission

    3 Answers

Posting to the forum is only allowed for members with active accounts.
Please sign in or sign up to post.

Techdegree

  • Front End Web Development
  • Full Stack JavaScript
SEE ALL

Tracks

  • Learn to Code for Beginners
  • Beginning Python
  • Beginning SQL
  • Beginning Java
SEE ALL

Courses

  • JavaScript Basics
  • Intro to HTML & CSS
  • Python Basics
  • CSS Layout
SEE ALL

About Us

  • About
  • Blog
  • Community
  • Stories
  • Contact
  • Gift Card

Explore

  • Plans
  • Affiliates
  • Perks
  • Shop
  • Free Treehouse Near Me
  • Treehouse for Libraries
  • Treehouse for Businesses

Treehouse is an online technology education platform founded in 2011. Treehouse offers more than 700 self-paced, video-based courses in web development, programming, data analysis, design, and AI, plus two project-based bootcamp programs in Front End Web Development and Full Stack JavaScript. Individual Treehouse plans start at $25 per month and include a 7-day free trial. Treehouse serves individual learners, businesses, schools, and public libraries. Cardholders at participating U.S. public libraries can use Treehouse for free. Select Treehouse courses, offered with University Pathways International, are recommended for college credit by ACE and NCCRS. Treehouse learners earn digital certificates for completed Tracks.

Terms & Conditions · Privacy · © 2026 Treehouse Island, Inc.
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
  • Discord