Skip to main content

Adding the Category List 2

All we have left to do is add a second drop-down list, with rating choices, and a submit button labeled “Go!”.

—Search.csp—
Search.csp
<html> <head></head>
<body>
<table width="100%" border="0"> <tr>
    <td><img src="CacheCinemaLogo.gif"></td>
    <td align="right">
    <form name="Search" action="SearchResults.csp" target="Main" method="post">
        <b>Find</b>

        <select name="CategoryList" size="1">
            . . .
        </select>
        <b>movies rated</b>
        <select name="RatingList" size="1">
            <option value="*" selected>Any Rating</option>
            <option>G</option>
            <option>PG</option>
            <option>PG-13</option>
            <option>R</option>
        </select>

        <input type="submit" name="Submit" value="Go!">
    </form>
    </td> </tr>
</table>
<hr>
</body> </html>
FeedbackOpens in a new tab