This topic is locked

Need help with relocating search Box

12/11/2008 3:07:21 PM
PHPRunner General questions
L
Lorenbond author

I need to search the main_list from another location (ie. header.php)
I created a PHP page Test.php
The "Show ALL" button works great; however the "Search" button creates an error on the bottom bar that simply staes "error on page"
Question: What code am I missing?
The following code is the entire contents of Test.php:
<FORM name=frmSearch action=main_list.php method=get>

<P align=center><input type="Hidden" name="a" value="search"><input type="Hidden" name="value" value="1"><input type="Hidden" name="SearchFor" value=""><input type="Hidden" name="SearchOption" value=""><input type="Hidden" name="SearchField" value=""></P></FORM>
<P align=center><STRONG><FONT

size=2>SEARCH</FONT></STRONG></P>

<P align=center><STRONG>&nbsp;</STRONG>

<select id="ctlSearchField">

<option value="">Any field</option>

</select>

<INPUT id=ctlSearchFor onkeydown="e=event; if(!e) e = window.event; if (e.keyCode != 13) return true; e.cancel = true; RunSearch(); return false;"

style="WIDTH: 170px; HEIGHT: 19px" size=22 name=ctlSearchFor

{$search_searchfor}>&nbsp;</P>

<P align=center><INPUT class=button style="WIDTH: 65px; HEIGHT: 25px" onclick="java script: RunSearch();" type=button size=25 value=Search>&nbsp;

<INPUT class=button style="WIDTH: 65px; HEIGHT: 25px" onclick="java script: document.forms.frmSearch.a.value = 'showall'; document.forms.frmSearch.submit();" type=button value="Show all"></P>

<P align=center><A href="main_search.php"><FONT color=#0000ff

size=2>Advanced Search</FONT></A></P>
</FORM>