in reply to HTML::Template question

If by searchbox you mean:
<input name="search" type="text" value="<TMPL_VAR NAME="SEARCH">" />
You'll want to add ESCAPE="HTML" to the TMPL_VAR tag in order to convert quotes into it's HTML equivalent (&quot;).
<input name="search" type="text" value="<TMPL_VAR NAME="SEARCH" ESCAPE +="HTML">" />
HTH

Update: This problem (with input boxes) is mentioned in the docs under TMPL_VAR

--
Rock is dead. Long live paper and scissors!