Listing 8. Form with Radio Buttons
<HTML>
<Head><Title>Search form</Title></Head>
<Body>
<Form method="POST" action="/cgi-bin/better-cgi-search.pl">
<P>Search string: <input type="text" name="pattern"></P>
<P><input type="radio" name="type" value="or">
at least one word
<input type="radio" name="type" value="and">
all words
<input type="radio" name="type"
checked value="phrase">exact phrase<P>
<P><input type="submit" value="Search!"></P>
</Form>
</Body>
</HTML>
Copyright © 1994 - 2018 Linux Journal. All rights reserved.