PDA

View Full Version : SSI


senns
03-19-1999, 04:05 PM
Is it possible for a form to send user input to an SHTML page, which then sends the information to a CGI script via the <!--#exec cgi--> command?

For example:
http://example.com/page.shtml?name=whatever
Would pass the info along to
http://example.com/page.cgi?name=whatever

Thanks

Terra
03-20-1999, 12:48 AM
The answer is yes...

It will be passed to the cgi script via the QUERY_STRING environment variable...

--
Terra
--had a brain cramp for just a sec--
FutureQuest

senns
03-20-1999, 01:21 AM
How would I go about doing this? Something like:

<!--#exec cgi="test.cgi?id=$ENV{'QUERY_STRING'}"-->

???

Terra
03-20-1999, 01:34 AM
nope - it's transparent

when your CGI is excuted - QUERY_STRING will be set as expected...

From here, experimentation is the key - tinker with it and see what you come up with... Half the fun is figuring it out... http://www.aota.net/ubb/wink.gif

--
Terra
--I love it when things happen automagically--
FutureQuest