I'm trying to create an map of my state on my page using a
Perl CGI script. I can create it and everything but the problem is in the .map file associated with the .gif file. When a person clicks on a portion of the map I want to assign a number to a variable and pass it through.
My first try looked like this in the .map file:
poly county=4 108,159 112,159 112,160 142,160 142,161
and like this in the script:
print "<A HREF=\"http://www.someplace.com/cgi-bin/counties.map\
print "<IMG SRC=\"/gifs/counties.gif\"
My CGI script loops back to itself and I get the value of county using the CGI.pm library functions. The previos example works but there are other variable that I need to pass through as hidden, but when I include the map, those hidden variables don't go through.
Then I tried this in the script:
(inside a form)
<INPUT type=image src=yourimage.gif value="testvalue">
But then, the action described in the .map file is ignored.
So all the other variables go through, but not 'county' defined in the .map file.
How do I either: 1)do the first example while having the ability to pass through the hidden variables (cookies?)
2)Use the second method and somehow coordinate the details in the .map file with the variables passed using the form.