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
  • Johannes Chitura
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Johannes Chitura
    PHP Development Techdegree Student 8,907 Points

    I am having a difficult time grasping what this question is asking?

    Posted March 10, 2020 4:15pm by Johannes Chitura
    .a{fill-rule:evenodd;}techdegree
    Johannes Chitura
    PHP Development Techdegree Student 8,907 Points
    • PHP
    • Browser Persistent Data with PHP
    • Data Persistence on the Web
    • Checking for Sessions

    1 Answer

  • Samuel Jegede
    Samuel Jegede
    7,053 Points

    If the variables are not set, redirect to play.php with the p parameter set to the first missing session variable

    Posted January 30, 2020 11:57am by Samuel Jegede
    Samuel Jegede
    7,053 Points
    • PHP
    • Browser Persistent Data with PHP
    • Data Persistence on the Web
    • Checking for Sessions

    1 Answer

  • Unsubscribed User
    Unsubscribed User
    8,428 Points

    How to redirect without header();

    Posted October 9, 2019 3:54pm by Unsubscribed User
    Unsubscribed User
    8,428 Points
    • PHP
    • Browser Persistent Data with PHP
    • Data Persistence on the Web
    • Checking for Sessions

    0 Answers

  • Abson Chifodya
    Abson Chifodya
    11,817 Points

    Use the trim function to remove blank spaces

    Posted April 29, 2019 8:20am by Abson Chifodya
    Abson Chifodya
    11,817 Points
    • PHP
    • Browser Persistent Data with PHP
    • Data Persistence on the Web
    • Checking for Sessions

    1 Answer

  • James Katarikawe
    James Katarikawe
    3,769 Points

    I am trying to check if the $_SESSION['word'] array is being set before checking individual values. Where's the problem

    Posted March 16, 2019 2:41pm by James Katarikawe
    James Katarikawe
    3,769 Points
    • PHP
    • Browser Persistent Data with PHP
    • Data Persistence on the Web
    • Checking for Sessions

    0 Answers

  • Yoel Dovid Cohen
    Yoel Dovid Cohen
    13,405 Points

    how do i do this

    Posted February 14, 2019 7:23pm by Yoel Dovid Cohen
    Yoel Dovid Cohen
    13,405 Points
    • PHP
    • Browser Persistent Data with PHP
    • Data Persistence on the Web
    • Checking for Sessions

    1 Answer

  • Victor Reyna
    Victor Reyna
    14,263 Points

    I think this challenge isn't clear, or is confusing

    Posted June 25, 2018 11:07pm by Victor Reyna
    Victor Reyna
    14,263 Points
    • PHP
    • Browser Persistent Data with PHP
    • Data Persistence on the Web
    • Checking for Sessions

    0 Answers

  • Robert Cooper
    Robert Cooper
    22,704 Points

    Unable to verify if string is empty using trim function

    Posted December 12, 2017 10:55pm by Robert Cooper
    Robert Cooper
    22,704 Points
    • PHP
    • Browser Persistent Data with PHP
    • Data Persistence on the Web
    • Checking for Sessions

    0 Answers

  • Fabian Pijpers
    PLUS
    Fabian Pijpers
    Courses Plus Student 41,372 Points

    I do not know what is wrong with code? Does anybody see the issue?

    Posted December 10, 2017 5:35pm by Fabian Pijpers
    Fabian Pijpers
    Courses Plus Student 41,372 Points
    • PHP
    • Browser Persistent Data with PHP
    • Data Persistence on the Web
    • Checking for Sessions

    4 Answers

  • Kristofer Doman
    Kristofer Doman
    18,307 Points

    These poorly designed tests are going to be the end of me

    Posted October 24, 2017 3:13pm by Kristofer Doman
    Kristofer Doman
    18,307 Points
    • PHP
    • Browser Persistent Data with PHP
    • Data Persistence on the Web
    • Checking for Sessions

    1 Answer

  • tawanda chikwavaire
    tawanda chikwavaire
    7,613 Points

    Use the trim function to remove blank spaces and verify that the value is not an EMPTY word.

    Posted September 1, 2017 8:08am by tawanda chikwavaire
    tawanda chikwavaire
    7,613 Points
    • PHP
    • Browser Persistent Data with PHP
    • Data Persistence on the Web
    • Checking for Sessions

    2 Answers

  • tawanda chikwavaire
    tawanda chikwavaire
    7,613 Points

    trim function to remove blank spaces and verify that the value is not an EMPTY word

    Posted August 29, 2017 7:45am by tawanda chikwavaire
    tawanda chikwavaire
    7,613 Points
    • PHP
    • Browser Persistent Data with PHP
    • Data Persistence on the Web
    • Checking for Sessions

    3 Answers

  • Julien Steel
    Julien Steel
    10,790 Points

    Redirect to play.php when $_SESSION['word'] is not set. What do I do wrong?

    Posted August 2, 2017 4:19pm by Julien Steel
    Julien Steel
    10,790 Points
    • PHP
    • Browser Persistent Data with PHP
    • Data Persistence on the Web
    • Checking for Sessions

    2 Answers

  • Shubham Modi
    Shubham Modi
    662 Points

    HOW DO I SOLVE THIS?

    Posted July 31, 2017 1:03am by Shubham Modi
    Shubham Modi
    662 Points
    • PHP
    • Browser Persistent Data with PHP
    • Data Persistence on the Web
    • Checking for Sessions

    0 Answers

  • Thomas Morling
    Thomas Morling
    12,754 Points

    Can't get this to work Setting Session variables

    Posted June 21, 2017 4:46pm by Thomas Morling
    Thomas Morling
    12,754 Points
    • PHP
    • Browser Persistent Data with PHP
    • Data Persistence on the Web
    • Checking for Sessions

    1 Answer

  • Thomas Morling
    Thomas Morling
    12,754 Points

    Stumped Where do I begin? Setting Session Variables Challenge

    Posted June 20, 2017 4:40pm by Thomas Morling
    Thomas Morling
    12,754 Points
    • PHP
    • Browser Persistent Data with PHP
    • Data Persistence on the Web
    • Checking for Sessions

    2 Answers

  • Dylan Martin
    Dylan Martin
    10,399 Points

    is using header("location: whatever.php?p=[$i]") not a valid way to redirect?

    Posted June 11, 2017 6:40pm by Dylan Martin
    Dylan Martin
    10,399 Points
    • PHP
    • Browser Persistent Data with PHP
    • Data Persistence on the Web
    • Checking for Sessions

    1 Answer

  • Andrew mwendo
    Andrew mwendo
    5,712 Points

    please help guys my last challenge

    Posted May 11, 2017 3:04pm by Andrew mwendo
    Andrew mwendo
    5,712 Points
    • PHP
    • Browser Persistent Data with PHP
    • Data Persistence on the Web
    • Checking for Sessions

    0 Answers

  • Andrew mwendo
    Andrew mwendo
    5,712 Points

    please help guys my last challenge

    Posted May 11, 2017 3:00pm by Andrew mwendo
    Andrew mwendo
    5,712 Points
    • PHP
    • Browser Persistent Data with PHP
    • Data Persistence on the Web
    • Checking for Sessions

    0 Answers

  • Andrew mwendo
    Andrew mwendo
    5,712 Points

    help with trimming guys

    Posted May 10, 2017 8:31pm by Andrew mwendo
    Andrew mwendo
    5,712 Points
    • PHP
    • Browser Persistent Data with PHP
    • Data Persistence on the Web
    • Checking for Sessions

    3 Answers

  • Andrew mwendo
    Andrew mwendo
    5,712 Points

    help guys my last challenge

    Posted May 10, 2017 8:21pm by Andrew mwendo
    Andrew mwendo
    5,712 Points
    • PHP
    • Browser Persistent Data with PHP
    • Data Persistence on the Web
    • Checking for Sessions

    4 Answers

  • Brandon Mathis
    Brandon Mathis
    11,141 Points

    looping through the $_SESSION['word'] array to search for an empty value...

    Posted May 8, 2017 4:16pm by Brandon Mathis
    Brandon Mathis
    11,141 Points
    • PHP
    • Browser Persistent Data with PHP
    • Data Persistence on the Web
    • Checking for Sessions

    0 Answers

  • Andrew mwendo
    Andrew mwendo
    5,712 Points

    can you guys help

    Posted April 28, 2017 7:46am by Andrew mwendo
    Andrew mwendo
    5,712 Points
    • PHP
    • Browser Persistent Data with PHP
    • Data Persistence on the Web
    • Checking for Sessions

    1 Answer

  • Andrew mwendo
    Andrew mwendo
    5,712 Points

    help i am confused

    Posted April 26, 2017 2:09pm by Andrew mwendo
    Andrew mwendo
    5,712 Points
    • PHP
    • Browser Persistent Data with PHP
    • Data Persistence on the Web
    • Checking for Sessions

    2 Answers

  • Andrew mwendo
    Andrew mwendo
    5,712 Points

    please help Check that each of the required session variables are not set before attempting to write the stor

    Posted April 26, 2017 1:23pm by Andrew mwendo
    Andrew mwendo
    5,712 Points
    • PHP
    • Browser Persistent Data with PHP
    • Data Persistence on the Web
    • Checking for Sessions

    6 Answers

  • Andrew Blackwell
    Andrew Blackwell
    13,264 Points

    This feels impossible to solve

    Posted April 6, 2017 10:48am by Andrew Blackwell
    Andrew Blackwell
    13,264 Points
    • PHP
    • Browser Persistent Data with PHP
    • Data Persistence on the Web
    • Checking for Sessions

    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