We came up against something similar while working on the WebDesignClinic. 

To see what I'm talking about here (and no, this isn't a blatant plug
*grin*), go to http://www.webdesignclinic.com
We wanted to have ONE search field pass the query to our 3 different search
cgi's - we have one for the Resources area, one for the forum, and one for
the Ezine. 

On the bottom of the first page is a search field. Most of this site (with
the exception of the Ezine) is generated by CGI. We wanted to do a Server
Side Include for the search form at the bottom and pass the parameters thru
the SSI - but no go. Not with passing parameters. And the "EXEC CMD"
command can be somewhat dangerous.

So our solution? We instead do this:

<form action="http://www.webdesignclinic.com/search.shtml" method="get">
<font size="-2"><input type="submit" name="submit" value="search"></font>
<input type="text" size="20" name="query">
<input type="hidden" name="action" value="simplesearch2">
<input type="hidden" name="ForumChoice" value="ALL">
<input type="hidden" name="SearchIn" value="ALL">
<input type="hidden" name="SearchDate" value="ALL">
<input type="hidden" name="BooleanAND" value="NO">
<input type="hidden" name="SearchUser" value="">
<input type="hidden" name="ExactName" value="no">
<select name="options">
<option value="searchall">Search Everything</option>
<option value="searchezine">Search the Ezine</option>
<option value="searchforum">Search the Forums</option>
<option value="searchlinks">Search the WDC Links</option>
</select>
</form>


Those are then passed to a search.shtml, which uses them in the following
manner:


<!--#if expr="$QUERY_STRING = /searchall/" -->
<!--#exec cgi="/cgi-bin/wdclinks/s2.cgi" -->
<img src="http://www.webdesignclinic.com/images/hbar.jpg" height=8
width=600 border=0>
<!--#exec cgi="/cgi-bin/ezinesearch/search_engine.cgi" -->
<img src="http://www.webdesignclinic.com/images/hbar.jpg" height=8
width=600 border=0>
<!--#exec cgi="/cgi-bin/wdcubb/search.cgi" -->
<!--#elif expr="$QUERY_STRING = /searchezine/" -->
<!--#exec cgi="/cgi-bin/ezinesearch/search_engine.cgi" -->
<!--#elif expr="$QUERY_STRING = /searchforum/" -->
<!--#exec cgi="/cgi-bin/wdcubb/search.cgi" -->
<!--#elif expr="$QUERY_STRING = /searchlinks/" -->
<!--#exec cgi="/cgi-bin/wdclinks/s2.cgi" -->
<!--#else -->

That passes the variables to the shtml page as environment variables. 

Lisa - hope I'm making sense here ;)


At 10:15 AM 3/31/99 -0600, [EMAIL PROTECTED] wrote:
>Urb asked:
>
>> ><!--#EXEC CGI="/cgi-bin/media/pr-view.pl?CC=st"-->
>> >
>> >Leaving the ?CC=st off and the script is called, sans the parameter.
>> >
>> >Any pointers? (pun intended)
>
>On 31 Mar 99, at 3:01, Michael A. Stone wrote:
>
>> try:
>> 
>>     <!--#include virtual="/cgi-bin/media/pr-view.pl?CC=st"-->
>> 
>> rather than 'exec'.   that should do the trick.
>
>You might want to look at this page:
>
>http://www.apache.org/docs/misc/custom_errordocs.html
>
>and this 
>
>http://www.apacheweek.com/features/ssi
>
>
>Peter
>
>
>Might is not Right. But there is a lot of Might knocking 
>about in this world, and something has to be done about it.
>-- King Arthur, The Once and Future King
>____________________________________________________________________
>--------------------------------------------------------------------
> Join The NEW Web Consultants Association FORUMS and CHAT:
>   Register Today at: http://just4u.com/forums/
>Web Consultants Web Site : http://just4u.com/webconsultants
>   Give the Gift of Life This Year...
>     Just4U Stop Smoking Support forum - helping smokers for
>      over three years-tell a friend: http://just4u.com/forums/
>          To get 500 Banner Ads for FREE
>    go to http://www.linkbuddies.com/start.go?id=111261
>---------------------------------------------------------------------
> 
____________________________________________________________________
--------------------------------------------------------------------
 Join The NEW Web Consultants Association FORUMS and CHAT:
   Register Today at: http://just4u.com/forums/
Web Consultants Web Site : http://just4u.com/webconsultants
   Give the Gift of Life This Year...
     Just4U Stop Smoking Support forum - helping smokers for
      over three years-tell a friend: http://just4u.com/forums/
          To get 500 Banner Ads for FREE
    go to http://www.linkbuddies.com/start.go?id=111261
---------------------------------------------------------------------

Reply via email to