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 Integrating with PayPal HTML Forms

Completely stumped.

I can't remember which elements need to be added for this code challenge.

form.html
<!DOCTYPE html>
<html>
<head>
    <title>Ye Olde Ice Cream Shoppe</title>
</head>
<body>

    <p>Your order has been created. What flavor of ice cream would you like to add to it?</p>

    <form action="process.php">

        <label for="flavor">Flavor</label>
        <select id="flavor">
            <option value="">&#8212; Select &#8212;</option>
            <option value="Vanilla">Vanilla</option>
            <option value="Chocolate">Chocolate</option>
            <option value="Strawberry">Strawberry</option>
            <option value="Cookie Dough">Cookie Dough</option>
        </select>

        <input type="submit" value="Update Order">

    </form>

</body>
</html>

2 Answers

Erik McClintock
Erik McClintock
45,783 Points

Phillip,

Truly, the best way to move forward in this case would be to move backward and rewatch the necessary video(s) to help this information stick in your head. If we just give you the answers so you can progress beyond a given challenge, that won't help you to truly understand the material, and you'll become VERY lost as you hit more advanced topics.

Honestly, the best advice we could give here would be to rewatch the lessons, follow along as applicable, and you'll be able to slam past these challenges in no time! If you find yourself still stuck and not understanding things even upon multiple viewings of the lessons, or if you're not understanding the way a challenge is phrased or the error it throws (which is very possible, as some of the instructions for these tasks can be confusing), or you don't see anything wrong with what you've tried, then come back and we can help you break things down.

Erik

Hi Erik,

This challenge in particular is referencing something from the HTML course which I last viewed a few weeks ago. You are assuming that I remember which video to reference, which I don't. The code challenge offers no help on this either. There is literally no guidance for someone who is stuck other than this forum, which is time-consuming as I await a (hopefully) prompt and correct response. Considering that my only other option is to take several minutes hunting for the right video and then the right section in the video, makes the learning process feel disjointed and aggravating. It is the king of thing that can cause someone to just give up out of pure frustration.

I disagree that providing some sort or hint chain, answer key, or reference link is counter-productive to helping someone learn. Simply make the user attempt an answer a few times before making additional information available. Add explanations as to why something is done in addition to providing hints and answers for those who are stuck. I don't want to have to "raise my hand" every time I run into a wall.

Erik McClintock
Erik McClintock
45,783 Points

Phillip,

I agree that some of the challenges could do a better job of presenting their information, both at the outset as well as after X number of failed attempts at passing (or provide an option for referencing code hints if you're truly stuck, as Codecademy has, for example). Reference links to related video lessons are also a great idea, and would help reduce the amount of time that somebody had to spend searching for previously viewed content. You could voice your complaints, frustrations, and suggestions for that by posting a topic to the General Discussion forums, or sending an email to Treehouse's support team.

In the meantime, if the challenges that you're coming across have information from previous courses/tracks/lessons that you can't recall the location of, or don't want to hunt for, and you find it unacceptable to await responses from other students here in the forums, another fantastic alternative (and one that will actually be very very very beneficial for you to develop for your career in coding) is to take to a search engine and do some research on your own. There is so much going on in all of these languages that it's nigh impossible for anybody to remember every little thing, so you will find yourself spending a wealth of time searching online for syntax clarifications, native functions, etc. The sooner you start making that a part of your routine, the better! It is an invaluable weapon in a developer's arsenal.

I do understand and sympathize with your frustration; we've all been there and will all be there time and time again as we continue to write code. Knowing where to find your answers is half the battle, and you have a lot of great resources at your disposal to do so, all of which are completely valid. Posting to these forums and waiting for fellow students to open a discussion with you? Totally valid. Going online and looking up further explanations or code examples for certain situations? Totally valid. And even while it may seem like a waste of time to some degree to go back through previous videos and lessons to hunt down information, it is also something that you will have to do on an almost daily basis anyway if you want to be a developer, and thus is also totally valid. You will frequently have to go back through API documentation, reread old code and try to figure out what was going on so that you can continue, debugging, etc. Feeling like it's a waste of time to go back and hunt down an answer from something you've already done before is not a good thing to put in your mind as a developer, because it's a natural part of the process that you're going to inevitably come across down the road.

I don't say any of this to offend you or to make any assumptions or accusations regarding your learning style, problem solving, or development capabilities. I am merely speaking from the experience(s) that I've had on my own journey in learning code (here on Treehouse as well as in a myriad of other websites, books, forums, etc.) and in working for a development house.

I do see that you've since moved past the initial spot that you were stuck on; that's awesome! I'm glad you were able to find a resource that reminded you of what was missing from the form! Should you get stuck again in the future, if you post information on what you've tried and what is failing, and more specifics on what you are having trouble with, it will be easier to guide you along to the right information without just giving the answer outright.

Erik

Hey Phillip,

I checked the challenge out and your code seems correct. All the challenge asked for is:

<form action="process.php">

I am referring to the question after this one, but I figured it out by looking at my code from working along with the videos. It needed a "method" and "name" attribute.

This code challenge was very confusing primarily because the questions were worded very differently from the video lesson preceding them.

Yeah, I empathize with you on the wording on the courses and getting some sort of feedback as to why an answer may be incorrect. I will say that it's an old course and when I say "old" I mean release date. The new courses provide a better user experience. As you move on you'll notice that you'll get feedback when the answer is correct and when it is wrong.

You passed the challenge and that's the bright side. Trial and error is the best way to learn imho.