PDA

View Full Version : Adding search box to every page (cont'd)


rogerh
10-11-2004, 05:21 AM
(Afraid vBulletin insisted that I start a new thread.)

In the previous thread on this subject [http://www.phpdig.net/forum/showthread.php?t=839] the instructions are to replace:

if ((isset($relative_script_path)) && ($relative_script_path != ".") && ($relative_script_path != "..")) {
**exit();
}

However I can't find this exact string in config.php. The closest seems to be this:

if ((!isset($relative_script_path)) || (($relative_script_path != ".") &&
($relative_script_path != "..") && ($relative_script_path != ABSOLUTE_SCRIPT_PATH))) {
// echo "\n\nPath not recognized!\n\n";
exit();
}

Maybe PhpDig has been updated since but I'd be grateful for new instructions.

Thanks.

Charter
10-11-2004, 11:08 AM
<!-- set http://www.domain.tld/search/search.php to your link -->

<form action="http://www.domain.tld/search/search.php" method="post">
<input type="text" name="query_string"> <input type="submit" value="Go">
</form>