PhpDig.net

PhpDig.net (http://www.phpdig.net/forum/index.php)
-   How-to Forum (http://www.phpdig.net/forum/forumdisplay.php?f=33)
-   -   Adding search box to every page (cont'd) (http://www.phpdig.net/forum/showthread.php?t=1441)

rogerh 10-11-2004 05:21 AM

Adding search box to every page (cont'd)
 
(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:

Quote:

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:

Quote:

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

Code:

<!-- 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>



All times are GMT -8. The time now is 06:07 PM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 2001 - 2005, ThinkDing LLC. All Rights Reserved.