CGI and Perl

Listing 13.3. The browse page.

 <TITLE>Browse the Web Shopping Network by Category</TITLE>
 Browse the Web Shopping Network by Category
 <FORM ACTION="[process-search]" METHOD=POST>
 <SELECT NAME="mv_searchspec">
    <OPTION VALUE="HomeAudio$"> Home Audio
    <OPTION VALUE="HomeVideo$"> Home Video
    <OPTION VALUE="CarAudio$"> Car Audio
    <OPTION VALUE="Computers$"> Computers
    <OPTION VALUE="Accessories$"> Accessories
 <INPUT TYPE=HIDDEN NAME="mv_orsearch" VALUE="yes">
 <INPUT TYPE="hidden" NAME="mv_search_page" VALUE="results">
 <INPUT TYPE="submit" NAME="mv_todo" VALUE="Search">
 <INPUT TYPE="hidden" NAME="mv_doit" VALUE="search"><BR>
 Matches per page:
 <SELECT NAME="mv_matchlimit">
 Just select one or more categories you wish to browse, then press the
 <B>Search</B> button.
 </BODY> </HTML>

As you see, the only real difference with this page is the mv_searchspec field. Rather than provide an empty text field here, you assist the user by providing a list of categories from which to choose, as you can see in Figure 13.3. You might be curious about the [finish-order] MiniVend tag in these last two HTML files. I explain this tag in the next section on displaying the search results.

The Browse by Category page
Figure 13.3. The Browse by Category page.

by BrainBellupdated