CGI Script Question

Andrew Mutch amutch at waterford.lib.mi.us
Fri Jan 29 16:18:11 EST 1999


Here's a question for any of the CGI Pro's out there.  Is there a way to create
a CGI script that will submit several variables -- in this case a password and
authorization -- to a specified URL?

I know how to do this with Javascript -- the following code demonstrates that --
the Javascript command 'onLoad' submits the values of the form 'oclc' to the URL
specified in the ACTION variable.  This example allows an automatic log-in to
OCLC FirstSearch Usage Statistics.

<body onLoad="document.oclc.submit()">
<FORM
NAME="oclc"
METHOD=post
ACTION="http://www.stats.oclc.org/cgi-bin/db2www/simoclc0.d2w/report">
<INPUT SIZE=12 TYPE=HIDDEN NAME="logonauth" VALUE="###-###-###">
<INPUT SIZE=12 TYPE=HIDDEN NAME="authpass" VALUE="XXXX">

However, this method leaves your password, etc. out in the open for any one
determined enough to get at it.  I would like to be able to hide this
information in a script that can be hidden away in out CGI-BIN directory.  Is
this doable??

Thanks for the help!

Andrew Mutch
Library Systems Technician
Waterford Township Public Library
Charter Township of Waterford, MI



More information about the Web4lib mailing list