RE: Hiding CGI Parameters in URL
by "Brian A. Sayrs" <sayrs(at)southwindsolutions.com>
|
| Date: |
Tue, 23 May 2000 16:03:15 -0700 |
| To: |
"'meovino(at)Estes-Express.com'" <meovino(at)Estes-Express.com>, "hwg-techniques(at)hwg.org" <hwg-techniques(at)hwg.org> |
| |
todo: View
Thread,
Original
|
|
This is just off the top of my head, but it may be able to point you in =
the right direction.
METHOD 1:
Links always execute the GET method, which encodes the parameters in the =
URL. If you KNEW that JavaScript was enabled, then you could have the =
link run a script which submits an invisible form which uses the POST =
method, which would hide your parameters.
So, what you can do is write your page with the nasty URLs, but run a =
script which changes all the href values to the appropriate script names =
(and parameters), then when they click on the links, they will run the =
script which submits the form. This way, it only changes to the =
script-form if JavaScript is running, and still allows the =
non-JavaScript people to run your CGI programs.
METHOD 2:
Sounds like an awful lot of work, and it still doesn't handle your =
problem if JavaScript is disabled. Is there some reason why you can't =
just make a form wherever you have a link, and have them click on submit =
buttons rather than links?
Brian
-----Original Message-----
From: meovino(at)Estes-Express.com [SMTP:meovino(at)Estes-Express.com]
Sent: Tuesday, May 23, 2000 1:04 PM
To: hwg-techniques(at)hwg.org
Subject: Hiding CGI Parameters in URL
I hope this is the correct list for my question, and I apologize in =
advance if
it's not. Anyway, I'd like to create hyperlinks to run a CGI program =
and pass
it the parameters (so, depending upon the link clicked, the program runs =
with
different values passed into it). Is there any way to keep that entire =
URL from
showing up in the address bar? I'd rather not have them see the =
parameters, if
at all possible.
Thanks in advance,
Mike Eovino
E-commerce and Customer Development Manager
Estes Express Lines
(804) 353-1900 x2520
(804) 353-8001 (fax)
http://www.estes-express.com
HWG hwg-techniques mailing list archives,
maintained by Webmasters @ IWA
This page is part of a preserved archive of archives.hwg.org. The site is no longer active and its content is not maintained. For enquiries about this archive, write to archive(at)iwanet.org.