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

New No-Code Track! 🚀start learning today!

🌟 Dreaming of a bright future? 🎓 Ask about the Treehouse Scholarship program! 🚀

✨ Earn college credits in Cybersecurity, JS, HTML, CSS and Python

  • Treehouse Logo
  • Plans
    Chevron
    • For Individuals
    • For Businesses
    • For Schools
    • For Libraries
    • For Military
  • Library
    Chevron
    • All Courses
    • Tracks
    • College Credit
  • Techdegree
    Chevron
    • Overview
    • Front End Development
    • Full Stack JavaScript
    • Data Analysis
    • UX Design
    • Python
  • Community
    Chevron
    • Code Adventures
    • Discord
    • Forum
    • Success Stories
    • Treehouse Links
    • 100 Days of Code
  • Resources
    Chevron
    • Career Toolbox
    • CodeForward
    • Free Treehouse Near Me
    • Jobs
    • Blog
    • Support
    • About
  • For Individuals For Businesses For Schools For Libraries For Military
  • All Courses Tracks College Credit
  • Overview Front End Web Development Full Stack JavaScript Python Development Data Analysis UX Design
  • Code Adventures Discord Forum Success Stories Treehouse Links 100 Days of Code
  • Career Toolbox CodeForward Free Treehouse Near Me Jobs Blog Support About
  • Sign In
  • Free Trial
Instagram Twitter Facebook YouTube LinkedIn
    • Newest
      • Newest
      • Active
      • Unanswered
      • Featured
    • All Topics
      • All Topics
      • • General Discussion
      • • AI
      • • Android
      • • 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
  • Kim Gee
    Kim Gee
    3,841 Points

    can't get the contact-thankyou.php page to show up after clicking the button. I am working on a server.

    Posted November 24, 2015 8:15pm by Kim Gee
    Kim Gee
    3,841 Points
    • PHP
    • Build a Simple PHP Application
    • Adding a Contact Form
    • Checking the Request Method

    1 Answer

  • Catalin Tismanaru
    PLUS
    Catalin Tismanaru
    Courses Plus Student 3,461 Points

    Even though I use "header("Location: contact-thanks.php");" , I am redirected to http://localhost/contact-process.php

    Posted September 21, 2015 12:21pm by Catalin Tismanaru
    Catalin Tismanaru
    Courses Plus Student 3,461 Points
    • PHP
    • Build a Simple PHP Application
    • Adding a Contact Form
    • Checking the Request Method

    1 Answer

  • Hello World
    Hello World
    12,904 Points

    $_SERVER['REQUEST_METHOD'] VS isset($_POST['submit'])

    Posted July 24, 2015 6:17am by Hello World
    Hello World
    12,904 Points
    • PHP
    • Build a Simple PHP Application
    • Adding a Contact Form
    • Checking the Request Method

    1 Answer

  • James Wrest
    James Wrest
    3,480 Points

    When I hit the send button it sends the email then comes up with just the header and no thank you message

    Posted June 23, 2015 10:13am by James Wrest
    James Wrest
    3,480 Points
    • PHP
    • Build a Simple PHP Application
    • Adding a Contact Form
    • Checking the Request Method

    1 Answer

  • Kirran Iveson
    Kirran Iveson
    2,191 Points

    Why does the $_SERVER code go at the top of the document when it's supposed to run after the submit button is clicked?

    Posted February 25, 2015 8:26pm by Kirran Iveson
    Kirran Iveson
    2,191 Points
    • PHP
    • Build a Simple PHP Application
    • Adding a Contact Form
    • Checking the Request Method

    1 Answer

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

    location() with a status="thanks"

    Posted January 31, 2015 5:47am 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
    • Checking the Request Method

    9 Answers

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

    $_SERVER["REQUEST_METHOD"]

    Posted January 31, 2015 4:58am 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
    • Checking the Request Method

    1 Answer

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

    http://localhost:3030/randy/contact.php?name=&email=&message=

    Posted January 31, 2015 3:47am 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
    • Checking the Request Method

    1 Answer

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

    $_SERVER[REQUEST_METHOD"]

    Posted January 29, 2015 12:23pm 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
    • Checking the Request Method

    2 Answers

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

    header();

    Posted January 25, 2015 1:46am 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
    • Checking the Request Method

    5 Answers

  • Ivan Ivetic
    Ivan Ivetic
    6,508 Points

    Can somebody explain to me what is the purpose of $_SERVER var and checking if REQUEST_METHOD = POST?

    Posted January 14, 2015 11:06pm by Ivan Ivetic
    Ivan Ivetic
    6,508 Points
    • PHP
    • Build a Simple PHP Application
    • Adding a Contact Form
    • Checking the Request Method

    1 Answer

  • Benjamin Wornell
    Benjamin Wornell
    10,458 Points

    header("Location: contact-thanks.php"); does not work

    Posted December 2, 2014 12:45am by Benjamin Wornell
    Benjamin Wornell
    10,458 Points
    • PHP
    • Build a Simple PHP Application
    • Adding a Contact Form
    • Checking the Request Method

    2 Answers

  • Rachel Lee
    Rachel Lee
    1,611 Points

    Where does the submission go?

    Posted November 18, 2014 10:17pm by Rachel Lee
    Rachel Lee
    1,611 Points
    • PHP
    • Build a Simple PHP Application
    • Adding a Contact Form
    • Checking the Request Method

    2 Answers

  • Nathon Reed
    Nathon Reed
    3,664 Points

    For some reason I am unable to get the header command to work. Every time it just loads the form submission in theheader

    Posted September 2, 2014 11:35am by Nathon Reed
    Nathon Reed
    3,664 Points
    • PHP
    • Build a Simple PHP Application
    • Adding a Contact Form
    • Checking the Request Method

    3 Answers

  • Erick Bongo
    Erick Bongo
    8,539 Points

    The use of $_SERVER["REQUEST_METHOD"]

    Posted March 7, 2014 3:46pm by Erick Bongo
    Erick Bongo
    8,539 Points
    • PHP
    • Build a Simple PHP Application
    • Adding a Contact Form
    • Checking the Request Method

    3 Answers

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

    Treehouse

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

See Full Catalogue

Techdegree

  • Front End Web Development
  • Full Stack JavaScript
  • Python Development
  • Data Analysis
  • UX Design

Tracks

  • Learn to Code for Beginners
  • Beginning Python
  • Beginning SQL
  • Beginning Java
  • ...see more

Courses

  • JavaScript Basics
  • Intro to HTML & CSS
  • Python Basics
  • CSS Layout
  • ...see more

Explore

  • Plans
  • Affiliates
  • Perks
  • Free Treehouse Near Me
  • Treehouse for Libraries
  • Treehouse for Businesses
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
Terms & Conditions | Privacy

© 2025 Treehouse Island, Inc.