Page 1 of 1

use os ISMAP and URL change

Posted: Wed Apr 02, 2003 12:04 am
by bmark
I am relatively new to PHP and have run into a problem with the use of ISMAP and how the URL changes on the mouse click.

I have the following code:
<a href="view.php">
<img src="image.jpg" ISMAP width="200" height="200">
</a>

My understanding is that the 'ISMAP' will change the URL to
'view.php?10,27' (assuming that the mouse was clicked at relative position x=10, y=27. Now I am very comfortable with accessing the variables in a PHP program when called in the following fashion:
'view.php?x=10&y=27'. But how do I access the variables when the php script is called with 'view.php?10,27' ? Any help would be greatly appreciated.

Posted: Wed Apr 02, 2003 2:18 am
by twigletmac
You can get the information from $_SERVER['QUERY_STRING'] and use explode() to split it up.

Mac

Thanks for the response

Posted: Wed Apr 09, 2003 6:16 pm
by bmark
I will try this, sorry for the late reply but I've been sick for a while and haven't been online.

I knew it would be simple but when you haven't seen it before I guess it all looks difficult.