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
  • Frank D
    Frank D
    14,042 Points

    Why $email_body = to itself and don't get overridden?

    Posted April 25, 2015 6:44pm by Frank D
    Frank D
    14,042 Points
    • PHP
    • Build a Simple PHP Application
    • Adding a Contact Form
    • Working with Concatenation and Whitespace

    1 Answer

  • Sharon Anderson
    Sharon Anderson
    3,192 Points

    Problem with concatenation returning 0's instead of entered text in Contact Form lesson of PHP.

    Posted April 9, 2015 3:42pm by Sharon Anderson
    Sharon Anderson
    3,192 Points
    • PHP
    • Build a Simple PHP Application
    • Adding a Contact Form
    • Working with Concatenation and Whitespace

    2 Answers

  • Domnick Knowlton
    PLUS
    Domnick Knowlton
    Courses Plus Student 2,437 Points

    Message not popping up!

    Posted March 10, 2015 2:21am by Domnick Knowlton
    Domnick Knowlton
    Courses Plus Student 2,437 Points
    • PHP
    • Build a Simple PHP Application
    • Adding a Contact Form
    • Working with Concatenation and Whitespace

    2 Answers

  • adrien kovanic
    adrien kovanic
    5,727 Points

    email not puping up

    Posted March 1, 2015 6:49pm by adrien kovanic
    adrien kovanic
    5,727 Points
    • PHP
    • Build a Simple PHP Application
    • Adding a Contact Form
    • Working with Concatenation and Whitespace

    1 Answer

  • giorgi shervashidze
    PLUS
    giorgi shervashidze
    Courses Plus Student 394 Points

    instead of assigning $_POST values to $email_body one by one, cant we just assign them all at once? see the code below

    Posted February 11, 2015 3:57pm by giorgi shervashidze
    giorgi shervashidze
    Courses Plus Student 394 Points
    • PHP
    • Build a Simple PHP Application
    • Adding a Contact Form
    • Working with Concatenation and Whitespace

    2 Answers

  • gyatmnucla
    gyatmnucla
    7,618 Points

    += in php

    Posted February 4, 2015 2:37pm by gyatmnucla
    gyatmnucla
    7,618 Points
    • PHP
    • Build a Simple PHP Application
    • Adding a Contact Form
    • Working with Concatenation and Whitespace

    1 Answer

  • MUHAMMAD KHAN
    MUHAMMAD KHAN
    1,508 Points

    Index Error

    Posted November 8, 2014 11:32am by MUHAMMAD KHAN
    MUHAMMAD KHAN
    1,508 Points
    • PHP
    • Build a Simple PHP Application
    • Adding a Contact Form
    • Working with Concatenation and Whitespace

    4 Answers

  • Aaron Lafleur
    Aaron Lafleur
    10,474 Points

    Could someone explain the logical process of this expression? confused...

    Posted October 5, 2014 1:59am by Aaron Lafleur
    Aaron Lafleur
    10,474 Points
    • PHP
    • Build a Simple PHP Application
    • Adding a Contact Form
    • Working with Concatenation and Whitespace

    7 Answers

  • balraj sarai
    balraj sarai
    6,303 Points

    unidentified index

    Posted October 2, 2014 2:42pm by balraj sarai
    balraj sarai
    6,303 Points
    • PHP
    • Build a Simple PHP Application
    • Adding a Contact Form
    • Working with Concatenation and Whitespace

    3 Answers

  • Stavros Anastasiadis
    PLUS
    Stavros Anastasiadis
    Courses Plus Student 7,984 Points

    Break line "\n"

    Posted June 20, 2014 8:41pm by Stavros Anastasiadis
    Stavros Anastasiadis
    Courses Plus Student 7,984 Points
    • PHP
    • Build a Simple PHP Application
    • Adding a Contact Form
    • Working with Concatenation and Whitespace

    1 Answer

  • Tibor Ruzinyi
    Tibor Ruzinyi
    17,968 Points

    Why to set a variable to blank ?

    Posted June 16, 2014 6:21pm by Tibor Ruzinyi
    Tibor Ruzinyi
    17,968 Points
    • PHP
    • Build a Simple PHP Application
    • Adding a Contact Form
    • Working with Concatenation and Whitespace

    2 Answers

  • Jerett Patterson
    Jerett Patterson
    323 Points

    Breaks not taking with my code - seems to identical

    Posted May 15, 2014 3:30am by Jerett Patterson
    Jerett Patterson
    323 Points
    • PHP
    • Build a Simple PHP Application
    • Adding a Contact Form
    • Working with Concatenation and Whitespace

    2 Answers

  • ammarkhan
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    ammarkhan
    Front End Web Development Techdegree Student 21,661 Points

    Concatenation

    Posted March 17, 2014 8:16am by ammarkhan
    .a{fill-rule:evenodd;}techdegree
    ammarkhan
    Front End Web Development Techdegree Student 21,661 Points
    • PHP
    • Build a Simple PHP Application
    • Adding a Contact Form
    • Working with Concatenation and Whitespace

    1 Answer

  • Iván Uruchurtu
    Iván Uruchurtu
    7,264 Points

    I have a mess on my head with this variable.

    Posted February 23, 2014 6:52am by Iván Uruchurtu
    Iván Uruchurtu
    7,264 Points
    • PHP
    • Build a Simple PHP Application
    • Adding a Contact Form
    • Working with Concatenation and Whitespace

    5 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