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!
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
Felix Wahlberg11,672 Points
Stuck, Please help!
This seems completely off topic!?
<!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="">— 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>
Jose Soto23,407 Points
There are two methods to send data in an HTML form, GET and POST. This challenge is telling you that you need to use the POST method to send the flavor data that is selected. It would look like $_POST['flavor'].
By default, HTML forms use the GET method. How can you modify the form to use the POST method instead?
Also, you will need to add a 'name' attribute to the select element and assign it the value 'flavor'. This is how the POST data will know what 'flavor' is referring to.
You may want to re-watch the video if you're having more trouble with this.