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

PHP Build a Simple PHP Application Adding a Contact Form Form Submissions

Jackie Jen
Jackie Jen
2,723 Points

Question In php developemnt course form submission quiz

The $_GET array contains variables added to the web address. If I want my first name (Randy) displayed by this PHP command ...

echo $_GET["name"];

ā€¦ then what needs to be added to the end of the web address?

http://localhost/contact-thanks.php________

I'm not understand clearly on what question mention. could anyone try to brief me about what the question about?

2 Answers

geoffrey
geoffrey
28,736 Points

That's in fact simple, if you want to display Randy in your web page with the echo command, using the $_GET method, so an URL, as information go through that url when using the GET method, how do you have to deal with this ?

            http://localhost/contact-thanks.php?name=Randy;
            echo $_GET["name"];
Jackie Jen
Jackie Jen
2,723 Points

oou...I understand now.. Thanks