Determining from which web page a cgi script is invoked?

davidgould at davidgould.com davidgould at davidgould.com
Tue Mar 10 23:08:23 EDT 2009


On Mar 10, 7:15 pm, cm <carlos.m... at atisa.es> wrote:
> davidgo... at davidgould.com escribió:
>
> > Given a webpage test.html that has a form with a cgi script, how can
> > you determine inside the cgi script the name of the webpage that
> > invoked the script?
>
> > I have many different html pages that use a common cgi script for form
> > processing and want to determine the name of the webpage.
>
> quick&dirty: Add a hidden form var with the page/form name

Yes, I had considered this. Is there any way to quickly automate the
setting of this var to match the html page that contains it?



More information about the Python-list mailing list