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

shubhamkt
shubhamkt
11,675 Points

attribute

what is the attribute to be added??

index.html
<!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>

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

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

    </form>

</body>
</html>

1 Answer

Jennifer Nordell
seal-mask
STAFF
.a{fill-rule:evenodd;}techdegree
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: