solidifying a really neat forms hack

marca@ncsa.uiuc.edu (Marc Andreessen)
Date: Wed, 24 Nov 93 02:47:23 -0800
From: marca@ncsa.uiuc.edu (Marc Andreessen)
Message-id: <9311241047.AA17645@wintermute.ncsa.uiuc.edu>
To: www-talk@nxoc01.cern.ch
Cc: ebina@ncsa.uiuc.edu
Subject: solidifying a really neat forms hack
Due to a cute little trap door we put into the Mosaic for X 2.0 forms
support, forms that consist of only a single text entry field with
NAME="isindex" result in query strings that look like:

        action?query

...and NOT:

        action?isindex=query

The reason we did this is because it was the cleanest way to handle
ISINDEX via inlined forms -- when the HTML parser sees an ISINDEX tag,
it replaces it with a fill-out form with a single text entry field
named "isindex", and Mosaic subsequently special-cases the handling of
forms with only a single value and NAME="isindex" when sending out a
query from such a form.

So then, Tony Sanders (originator of the incredibly useful ISMAP
attribute to IMG -- how is it he comes up with these things before
everyone else??? :-) realized that this means that *normal* forms in
arbitrary documents that contain, you guessed it, only a single text
entry field with NAME="form", provide transparent access to normal
ISINDEX servers (WAIS servers, Gopher search engines, etc.).

Some of you have already seen the a sample of the implications of this
paradigm shift (God, I love that term); e.g.,

    http://www.ncsa.uiuc.edu/SDG/Software/Mosaic/Demo/metaindex.html

Also, yesterday I noticed:

    http://cui_www.unige.ch/meta-index.html

For those of you without forms-enabled browsers, these documents
contain a series of forms as described above that point to existing
ISINDEX servers.  For example, the NCSA document given above allows
you to search on the CUI WWW catalog, the GNA Meta-Library, the Whole
Internet Catalog, Veronica, Jughead, the WAIS directory of servers,
etc. all from a single document -- a text entry field is provided for
earch search engine.

I propose that this technique be institutionalized by a one-time-only
special case in the forms spec that will insure that all forms-enabled
browsers can provide this capability.  It's really quite powerful, and
I think it's well worth a special case in the spec -- existing query
databases from a wide variety of information services can be folded
into arbitrary HTML documents very smoothly.

Cheers,
Marc