Jump to content

Image Mapping and Passing Variables


Recommended Posts

I have this Map of my State and I've created hotspots for each of the 23 Districts within.

 

I want the User to click on a particular Spot, which would go to a page where the members for that state would be displayed using that District ID as the Search Key.

 

I guess I can pass on a Form Input data to another page as Hidden values, but how do I do it in this case ?

 

Morover, DW gives one common Map ID for the entire image and different co-ordinates. How then would I able to allocate the District IDs for each Spot ?

 

Thanks for the support

Link to comment
Share on other sites

Sorry about not posting the solution before I closed the thread..

 

I define the URL within the area map and GET it on the next page

 

<area shape="rect" coords="31,16,78,27" href="mynextpage.php?district=1" target="">

in the Target Page 

$district = $_GET["district"]

$SQL = "select * from Mytable where district = ". $district

 

Hope it is useful to others

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.