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 ...
Get Sams Teach Yourself Movable Type in 24 Hours now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.