This topic is locked
[SOLVED]

 Search Form in Home page to jump directly to new window displaying res

1/12/2007 4:46:34 PM
PHPRunner General questions
P
PMCrosby author

Hi
I've got a Business Directory, and all is working fine.
But on my own designed home page I would like the search bar or part of it displaying.
When a <guest> types in a keyword and then presses search, I would like a new window to pop up with the search results displayed as in the Company_List.php . script.
The user Guest to be the default user ideally.
My knowledge of php is limited but is growing fast!!!

Alexey admin 1/15/2007

Peter,
use the following HTML code on your page to run searching.

<FORM name=frmSearch action="..._list.php" method=get target=_blank>

<input type="Hidden" name="a" value="search">

<input type="Hidden" name="value" value="1">

<INPUT type=text name="SearchFor"

onkeydown="e=event; if(!e) e = window.event; if (e.keyCode != 13) return true; e.cancel = true; frmSearch.submit(); return false;"

>

<input type="Hidden" name="SearchOption" value="Contains">

<input type="Hidden" name="SearchField" value="">
<input type="submit" value="Search">

</FORM>


Just replace ..._list.php with your actual PHPRunner-created file name.