PHP Build a Basic PHP Website (2018) Adding a Basic Form HTML Forms

11,675 Points


what is the attribute to be added??

<!DOCTYPE html>
    <title>Ye Olde Ice Cream Shoppe</title>

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


        <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>

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



1 Answer

Jennifer Nordell
Jennifer Nordell
Treehouse Teacher

Hi there! I'm assuming that you're stuck on the first step. The form's action attribute needs to point to the file that will be handling the processing. In this case, the challenge has specified that it will be in process.php. Take a look:

    <form action="process.php">

This will tell the form to use the process.php to handle the information sent by the form.

Hope this helps! :sparkles: