HTML 3,0 streamlines the query process and makes it easier to perform
queries on indexes. Performing an ISINDEX query under HYML 3.0 is a five
step process.
Step 1. - the user access a do***ent containing an ISINDEX query. The
ISINDEX tag has an attribute HREF used to specify a gateway script for
searching. That will also override the server's default URL.
<HTML>
<HEAD>
<TITLE>Searchable Do***ent</TITLE>
<ISINDEX REF="address.db" PROMPT="What address would you like to search
for?">
The PROMPT attribute of the ISINDEX tag is used as above to comment about
the user..
</HEAD>
</HTML>
It would look to me as if, the example above Web Publi****ng Unleashed Ch.
11
Writing CGI scripts pp. 355 will open a program which has been associated
withe the filename extension " .db ". This use of associating filename
extensions with a "helper application" was a new feature of HTML 3.0 Yet
the use of URLs is relative to a match of relative or absolute paths,
also
involving time and date references.
CGI itself is a browser extension.
I have some other related information. I have some information about
sessions and cookies which is not what i am doing here though. I am doing
gateway CGI programs.
- Gateways - Web gateways are programs or scripts used to access
information
that is not directly readable by the client. For example, say you have an
Oracle database that contains baseball statistics for all the players on
your company team. And now say that you want to provide this information
on
the Web. Certainly you could not point your client to the database (i.e.,
open the URL associated with the file) with the expectation of seeing any
meaningful data. -This suggests that we need to reconsider our data
formatting where we can have a means to talk to the database data using
the
database, other than HTML.
Unfortunately the example above seems to suggest pointing the browser at
the
database, but it only opens the database. What we want is the script with
a
query.
CGI provides a solution in the form of a gateway to information that is
not
directly readable by the client. See Chapter 9, Gateways, Databases, amd
Search/Index Utilities for information about a language which can be used
to
read the information contained within the database.
Step 2. - Following the prompt, the user enters a search string and client
relays this to the server.
Step 3. - Server sends search string to the script as a URL-encoded search
string.
Step 4. - the script uses the search string to perform an acion, such as
generating a do***ent containing the results of the search.
Step 5. - Server sends results to client.
A sentence about this reads - "Once you have the information, and read
from
the media using a DBI extension to Perl to form SQL queries (to read the
information within the database for example), you can format and send it
to
the client. In this case the CGI serves as a gateway to the Oracle
database."
Simple Example: CGI
Similarly, you can write gateway programs to any other Internet
Information
Service (IIS), including Archie, WAIS, and NNTP (Usenet News). See
Chapter
10 Gateways to Internet Information Services to locate examples of
interacting with other Internet services.
- Simple forms - can be used to collect information from the user. This
is
a reference given above.
The GET and POST methods of the FORM tag are both discussed. Only the
HTTP
GET method uses URL-encoded search strings. This applies when a server
receives an URL-encoded search string, the server assigns the value of the
search string to the QUERY-STRING variable in the HTTP header.
As the server sets the following environment variables itr also p***** the
input to the script - All the variables i.,.e, protocol, ****t, script
name,
are filled in and displayd Ch 11. pp 357 Web Publi****ng Unleashed.
Using the environment, you can get an HTML with a DBI context (database
index page) and use the BASE tag to point for m a path to your scripts
directory. Your DBI page should have links to scripts. If you call an
ASP
page you can use server side includes, or activate components such as
database connections. A script is a little task oriented program for
generating re****ts from data often. The script sends HTML back to the
client. If you learn how to make the environments more compatible you can
do things like push and pop data onto queues, or fling pop ups.
Cheese doodle!!
"WALLYWORLD" <random@[EMAIL PROTECTED]
> wrote in message
news:up6dneIJJaholunanZ2dnUVZ_ramnZ2d@[EMAIL PROTECTED]
> i actually don't know the best way to combine C executables with the CGI
> >
> >
> >
>
>


|