O'Reilly logo

Sams Teach Yourself Movable Type in 24 Hours by Porter Glendinning, Molly E. Holzschlag

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Working with Text Search Forms

There's really not much to creating a text search form for your site. Most of the configuration variables that you can set have default values that the search script will fall back on if you don't explicitly set them. That means that if the default values are acceptable to you, there's no need to set the variable at all. In fact, the only field that you absolutely must have in a text search form is the one for the search terms, conveniently named search.

If we pare the text search down to its bare minimum so we can better see what's going on, it looks like this:

<form method="get" action="<$MTCGIPath$><$MTSearchScript$>">
  <input type="text" name="search" />
  <input type="submit" value="Search" />
</form>

In this ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required