Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialHasan Can Terzi
5,892 PointsINPUT_GET instead of $_GET
Hello everyone, If you had a trouble about $_GET You should use INPUT_GET. I am using NetBeans IDE and I took an error which is " Do Not Acess Superglobal $_Get Array Directly". Problem solve is in PHP docemantation:
http://php.net/manual/en/filter.constants.php
if (filter_input(INPUT_GET, "cat") == "books") { $pageTitle = "Books"; }elseif(filter_input(INPUT_GET, "cat") == "movies") { $pageTitle = "Movies"; }elseif (filter_input(INPUT_GET, "cat") == "music") { $pageTitle = "Musics"; }
Hasan Can Terzi
5,892 PointsHasan Can Terzi
5,892 PointsHow can I show my code like yours? Colorful :D
Rifqi Fahmi
23,164 PointsRifqi Fahmi
23,164 PointsYou can click on the Markdown Cheatsheet link for the reference. it contain like this