Author: Circum
Email: [EMAIL PROTECTED]
Message:
> The PHP itself gives you an extra features.
> So you can easily modify frontend to suit your requirements.
Well, I can modify search.cgi also, but it is a bit more hassle... :)
> If you are using php frontend then you have two choices:
> 1. modify php frontend with your code
> 2. use php frontend as include script in your script, for example:
> you can write you own PHP script which is doing what you need, and
> write
> include('search.php');
> in the place wher you need your search form and search results. So you
> can use all php power in your code.
Actually, if I cannot use PHP in the templates, then there is an equivalent solution
with the cgi version:
$f=fopen("http://www.informed.hu/cgi-bin/search.cgi?$QUERY_STRING","r");
fpassthru($f);
flose($f);
If you get out the "ACTION=$(self)" attribute from the <FORM> in the
<!--top--> template, then the form reloads the same page, not the /cgi-bin/search.cgi.
I have programmed more fast than I think, and before the trick above came to my mind I
have implemented that the "QUERY_SELF" form variable's content is copied into the
$(self) template variable. If somebody has an idea whether it is good for something, I
can contribute the (3 lines long :) patch for search.c.
Reply: <http://www.mnogosearch.org/board/message.php?id=4284>
___________________________________________
If you want to unsubscribe send "unsubscribe general"
to [EMAIL PROTECTED]