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 trial
Jackie Jen
2,723 PointsHTML code
Hi,
{ a href="testing.php?id=<?php echo $user->user_id ?> " }
I would like to know above HTML code what is the meaning of "?" in "testing.php?id= . I have been trying to google but can't find it. Please advice
sorry i can't post this "<" symbol i have replace with "{"
Best Regards
2 Answers
Kevin Korte
28,149 PointsIt basically separates a query string from a URL. Usually meaning the part before the question mark will have some sort of server side code that will get the query string from the URL and use it to generate content.
In your reference, it would make sense to have server side code at that web address to get the user id number from the URL, and generate content based on that user.
Jackie Jen
2,723 PointsThanks Kevin.