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
Sam Chaudry
25,519 PointsStuck on challenge 3/3 creating paypal buttons
<!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" method="post"> <input type="hidden" value="flavor"> <input type="hidden" value="7546" name="order_id"> <input type= "hidden" value= "7546" name= "order_id"> <label for="flavor">Flavor</label> <select id="flavor" name="flavor"> <option value="">ā Select ā</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>
It says It looks like you have added a hidden input field with a value correctly, but it's missing the other attribute it needs.
What am I missing? Can't seem to figure out the right attributes??
3 Answers
Randy Hoyt
Treehouse Guest TeacherHmmm ... it looks like you have a stray line of code in there:
<input type="hidden" value="flavor">
That's the input element the code challenge is checking; it's missing a name attribute. But it looks like you actually have the correct element below:
<input type="hidden" value="7546" name="order_id">
Remove the earlier stray line, and it should work.
hlias kantzos
19,191 Points"Hint: We need to add a new HTML element with three attributes" You have find the two of them. the type and the value. you need the third. what is the name of the input element?
Sam Chaudry
25,519 PointsYep sorted
Thanks guys appreciate the help
Sam