I have a form on header_e.cfm
CODE
<form action="search_e.cfm" method="post" name="searchText">
Search RET Documents<br />
<input type="text" name="keywords" size="30" />
<input type="submit" value="Search" name="Operation1" onclick="return validateSearchText();" /><br />
<input type="radio" name="cri" value="or" checked="checked" />
Any Match
<input type="radio" name="cri" value="and" />
Exact Match
</form>
Search RET Documents<br />
<input type="text" name="keywords" size="30" />
<input type="submit" value="Search" name="Operation1" onclick="return validateSearchText();" /><br />
<input type="radio" name="cri" value="or" checked="checked" />
Any Match
<input type="radio" name="cri" value="and" />
Exact Match
</form>
As you can see it is submitted to search_e.cfm. On search_e.cfm I search the db for the search string. The problem if I'm on main_e.cfm and do the search in the header, the search page will not get the "keywords" string. When I print the value of form.keywords I get blank. If I do my search in the header of search_e.cfm I get the correct results and the search string is printed out with form.keywords.
CODE
...
<cfset kwords= ReplaceNoCase(keywords, " ", "%,%", "ALL")>
<cfset kwords= "%" & kwords & "%">
<cfoutput>kwords: #kwords#<br />
form.keywords: #form.keywords#<br />
form.cri: #form.cri#<br />
form.submit: #form.operation1#</cfoutput>
...
<cfset kwords= ReplaceNoCase(keywords, " ", "%,%", "ALL")>
<cfset kwords= "%" & kwords & "%">
<cfoutput>kwords: #kwords#<br />
form.keywords: #form.keywords#<br />
form.cri: #form.cri#<br />
form.submit: #form.operation1#</cfoutput>
...