l i n u x - u s e r s - g r o u p - o f - d a v i s
Next Meeting:
July 7: Social gathering
Next Installfest:
Latest News:
Jun. 14: June LUGOD meeting cancelled
Page last updated:
2001 Dec 30 16:59

The following is an archive of a post made to our 'vox-tech mailing list' by one of its subscribers.

Report this post as spam:

(Enter your email address)
Re: [vox-tech] cgi question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [vox-tech] cgi question

  • Subject: Re: [vox-tech] cgi question
  • From: Henry House <hMAPSajhouse@houseag.com>
  • Date: Thu, 21 Dec 2000 12:04:11 -0800
  • References: 20001221094230.A9190@dirac.org

On Thu, Dec 21, 2000 at 09:42:30AM -0800, Peter Jay Salzman wrote:
> i have a form page (form.html) -- the user enters data and it calls a cgi
> script (cgi1.pl).
> the cgi script saves the data to a file.
> at this point i would like to put up a map, have the user click on it and
> save the (x,y) value to the file that cgi1.pl just wrote.
> what's the best way to do that?  at this point, i have two options:
> 1. have cgi1.pl put the map up after it saves the datafile.  i'm not sure
>    how to collect the (x,y) data.

You should probably use a server-side image map and get the x,y info from the
PATH_INFO environment variable. Here is how that works:

http://www.foo.bar/cgi-bin/map/path/info -> PATH_INFO = '/path/info'

where 'map' is the name of the cgi.

> 2. have cgi1.pl call another webpage that puts the map up and collects the
>    (x,y) data.   the html page will have to call another cgi script to
>    write the coordinate data, but i'm not sure how to make the new cgi "know"
>    which data file we just wrote to.

Pass it an argument.

I'm not really sure what the stumbling block is. Can you be more specific?

Henry House
OpenPGP key available from http://hajhouse.org/hajhouse.asc

LUGOD Group on LinkedIn
Sign up for LUGOD event announcements
Your email address:
LUGOD Group on Facebook
'Like' LUGOD on Facebook:

Hosting provided by:
Sunset Systems
Sunset Systems offers preconfigured Linux systems, remote system administration and custom software development.

LUGOD: Linux Users' Group of Davis
PO Box 2082, Davis, CA 95617
Contact Us

LUGOD is a 501(c)7 non-profit organization
based in Davis, California
and serving the Sacramento area.
"Linux" is a trademark of Linus Torvalds.

Sponsored in part by:
EDGE Tech Corp.
For donating some give-aways for our meetings.