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
Joel La Russa
4,087 PointsPHP - PayPal - 3 of 3 Challenge Tasks
I don't get it... Can anyone spoon feed me, or point out the correlation video?
Finally, we need the form to submit a unique identifier for the order to the process.php file. We need to be able to access that value in an “order_id” element of the $_POST array like this: $_POST["order_id"]. For this particular order, the order ID should be 7546. We don’t want this value displayed in the browser. What do we need to add to the form? (Hint: We need to add a new HTML element with three attributes.)
Bummer! It looks like you have added a hidden input field correctly, but the name attribute has the wrong value. The information in this element needs to be accessible on the server in the "order_id" element of the $_POST array.
<!--input type="hidden" name="flavor" value="<?php echo $_POST["order_id"]; ?>"-->
3 Answers
Zoe Peng
10,809 Points<input type="hidden" name="order_id" value="7546">
Tuguldur B.
Courses Plus Student 3,099 PointsThe challenge is asking for the name of the input to be "order_id", which can be accessed later using the $_POST["order_id"], and the value to be equal to "7546".
So the final answer would be: <--input type="hidden" value="7546" name='order_id'-->
Joel La Russa
4,087 PointsOhh, for a minute it sounds like, grab the $_POST["order_id"] array sitting on the server, and display it in the input name value...
Thanks for clearing that up, I also was unsure about the name element :S