Don't want to get a huge thread started here- although it may be of
interest to other folks on this list, let's not get tooooo far off topic...
:) Please hold further comments because I have the answer I need. If anyone
else is interested, I can send you more details "offline"...
Mark is correct below: the action he specifies does show the filename
correctly from the post action.
Chuck is half-correct. In HTML you cannot dynamically change the action of
the form. But you can with javascript (which I was trying to avoid).
Alternatively, the HTML page could have multiple "hidden" forms- clicking
on a particular button could submit the one with the correct filename
embedded in the POST action...
Thanks folks- let's cut this off before it aggrivates anyone!
regards,
james
At 10:32 AM 10/29/99 -0500, Chuck Tomasi wrote:
>That might be difficult, particularly if the form is requesting the
>filename. You can't make an action URL include the contents of the form
>it is surrounding. Sort of a 'chicken and egg' scenario (unless I'm
>misunderstanding the original request and response.)
>
>--ct
>
>> -----Original Message-----
>> From: owner-msql-list@Hughes.com.au
>> [mailto:owner-msql-list@Hughes.com.au]On Behalf Of Mark Rosenstein
>> Sent: Friday, October 29, 1999 9:50 AM
>> To: james_harrell@mindspring.com
>> Cc: msql-list@lists.Hughes.com.au
>> Subject: Re: Off topic advanced CGI/HTTP question...
>>
>>
>> James,
>>
>> Just invoke your script with an extra path component, like this:
>> <FORM ACTION="/cgi-bin/download.cgi/filename.tar.gz">
>> Your web server will still invoke the download.cgi script with some
>> extra environment variables you can ignore, but the client will think
>> it is getting back "filename.tar.gz", not "download.cgi".
>>
>> -Mark
>>
-------------------------------------------------------------------------
To unsubscribe, go to http://www.Hughes.com.au/extras/email/
This archive was generated by hypermail 2b30 : Mon Mar 04 2002 - 09:03:52 EST