Welcome to the Treehouse Community
Looking to learn something new?
Keeps Saying Added Element is NOT Correct, What's Missing???
Challenge task 2 of 3
Next, we need the flavor selected in the dropdown to be submitted to this process.php file. We need to be able to access it in the “flavor” element of the $_POST array, like this: $_POST["flavor"]. What two changes do we need to make to the HTML? (Hint. We need to add two new attributes. The first needs to be added to one existing HTML element, the second needs to be added to a different existing HTML element.)
<!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 method="POST" action="process.php"> <?php $flavor = $_POST["flavor"]; ?> <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>
Case Sensitive??? What The What???
Thanks Again Big Daddy :-)