#!/usr/bin/perl -w
#
# Use GET method. CGI.pm will read in POST's and there will be
# no $ENV{QUERY_STRING}, htsearch doesn't know what and how
# to search for.
use strict;
use CGI;
my $query = new CGI;
if (defined($query->param('do_search'))) {
exec "/var/local/www/cgi-bin/htsearch.exec.cgi";
} else {
exec "do_phone";
}
On Wed, 20 Oct 1999, J.E.France wrote:
>
> To whom it may concern:
>
> I am the current UNB Assistant Web Manager (Jef). I am
> currently designing a simple CGI script (in PERL) which acts
> basically as an if statement between two unique searches. The
> input form is a basic HTML form, which contains the word/name
> field, a submit button, and two radio buttons. The radio buttons
> determine which search is to be performed, either a Phone/Name
> look up, or the HTDIG search.
> The CGI file that deals with the input, reads in the data to
> determine which radio button has been checked, and then performs
> the search. It then enters a simple if statement, and calls upon the
> desired search CGI file to perform the search.
> I had no problems with the PH (phone/name) search as it was
> written in Perl, and simply required a do function call.
> Unfortunately, the HtDig searcher has been written in C++ (I
> believe) and is encripted.
> I am wondering if it is possible to have a perl program call upon
> the htsearch.cgi file, sending it the input, and having it perform the
> search. I'm sure this is possible, as Perl and C/C++ can be
> embeded within each other. Unfortunately (again), I am very new to
> Perl, and know only the "easy" part of C, and am unsure where I
> can go for help, information, or examples. I am looking for ideas
> and examples of how to take input read in Perl, send it to C++, and
> have the C++ file finish the job.
> Currently, my perl file inputs all the data into a CGI form, using
> the CGI.pm library file. This was done to accomidate the Ph server,
> but can a CGI form created by CGI.pm which stores all the values
> of the input be somehow sent to the htsearch.cgi file???
> Also, I know this could be done using Java Script, but, it is
> desired that this task can be performed by ANY browser out there,
> thus eliminating Java Script as a possibility.
> Any help or information that you (the reader), or any others out
> there can give me would be MOST appreciated. I'm having
> difficulties figuring out where to start, let alone how to go about
> doing this.
> If you have any knowledge or information, please email me
> back at [EMAIL PROTECTED]
> Thank you for your time and energy. Any help would be great.
>
> J.E.France
>
>
> ------------------------------------
> To unsubscribe from the htdig3-dev mailing list, send a message to
> [EMAIL PROTECTED] containing the single word "unsubscribe" in
> the SUBJECT of the message.
>
>
--jesse
--------------------------------------------------------------------
J. op den Brouw Johanna Westerdijkplein 75
Haagse Hogeschool 2521 EN DEN HAAG
Sector Techniek Netherlands
Afdeling Elektrotechniek +31 70 4458936
-------------------- [EMAIL PROTECTED] --------------------
Linux - because reboots are for hardware changes
------------------------------------
To unsubscribe from the htdig3-dev mailing list, send a message to
[EMAIL PROTECTED] containing the single word "unsubscribe" in
the SUBJECT of the message.