Is it possible...

Is it possible to submit information to a CGI script and recieve the output without actually going to the CGI url?

Say I went to:
www.mysite.com\index.htm

And submitted a form to:
www.mysite.com\my.cgi

But I didn't want it to say:
www.mysite.com\my.cgi

In the Address bar. I wanted it to say:
www.mysite.com\index.htm


Sorry if this text seems really confusing...it's the best I could do, though. :)
blindAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

shiversCommented:
if your server supports SSI includes (most do these days, especially if they give full CGI):

rename index.html to index.shtml (so the server parses it and runs the directives)

add the following line:

<!--#exec cgi="my.cgi"-->

this inserts the output from the CGI into the HTML page before sending it to the client.

(of course you could always just rename my.cgi to index.cgi - unless it really matters what it says in the location bar)
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
ercisCommented:
You can make browser go to URL returned by CGI script, who need to return only:
Location: index.htm\n\n
But, this is other story, how index.htm will be able to display new info ...
0
heitCommented:
you can do THE old trick to hide those ugly urls for your visitors by using frames, where the first frame is your cgi-formstuff and the other frame is a 1-pixel high empty frame. if you do this at your toplevel index.html the addressbar will only show

http://www.mydomain.com/
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Scripting Languages

From novice to tech pro — start learning today.