Forum Moderators: coopster

Message Too Old, No Replies

PHP Site Search engine

         

slimnutty5000

11:35 pm on Nov 6, 2006 (gmt 0)

10+ Year Member



Hi,
I am trying to get a site search engine to work on my site. I just want the basic functionality, nothing special. I downloaded one tutorial and it seems perfect, except for one detail...the search results show on the same page.

All i am looking to do is have the search results display on a seperate page (results.php)

Can anyone help me how to do this?
Here is the form info as it is now:

function search_form($HTTP_GET_VARS, $limit_hits, $default_val, $message_5, $message_6, $PHP_SELF) {
@$keyword=$HTTP_GET_VARS['keyword'];
@$case=$HTTP_GET_VARS['case'];
@$limit=$HTTP_GET_VARS['limit'];
echo
"<form action=\"$PHP_SELF\" method=\"GET\">\n",
"<input type=\"hidden\" value=\"SEARCH\" name=\"action\">\n",
"<input type=\"text\" name=\"keyword\" class=\"text\" size=\"10\" maxlength=\"30\" value=\"";

Psychopsia

3:54 am on Nov 7, 2006 (gmt 0)

10+ Year Member



Hi!

<form action="results.php" method="GET">

So, you could remove $PHP_SELF param, and as a suggestion, use $_GET instead of $_HTTP_GET_VARS (remove the first param too, because $_GET is auto global).

slimnutty5000

9:35 pm on Nov 7, 2006 (gmt 0)

10+ Year Member



Does anyone know any GOOD and EASY TO INSTALL site search engines that are free and no limited?