Hi all. I have a search box on my site. On the search results page, the client wants to prepopulate another search field with the previous search term. Here’s what I have:
{exp:search:simple_form weblog="articles" result_page="search/results" results="10" where="any" search_in="everywhere"}
<input type="text" class="text" name="keywords" id="keywords" value="{exp:search:keywords}" />
<input type="image" class="submit" src="/images/search-again.gif" id="search-button" alt="Search Again" />
{/exp:search:simple_form}and then:
{exp:search:search_results paginate="bottom"}
<div class="result">
<a href="#"><strong>{title}</strong></a>
{exp:search_marker}{excerpt}{/exp:search_marker}
</div>
{/exp:search:search_results}And it is spitting out this HTML code:
<input type="text" class="text" name="keywords" id="keywords" value="Traditional Chinese Medicine (TCM) can offer much help to sufferers of auto immune diseases, yet this fact remains largely unknown to many patients and their doctors. As a TCM practitioner with specialized training in the field of autoimmunity, I am often frustrated by the difficulty of getting this knowledge across to…" />
In other words, it is spitting out an {excerpt} where the {exp:search:keywords} variable is. Ideas???
Very odd!
Thanks!