🤑 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
  • 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.

    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.