use os ISMAP and URL change

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
bmark
Forum Newbie
Posts: 9
Joined: Mon Feb 17, 2003 12:19 pm

use os ISMAP and URL change

Post 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.
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

You can get the information from $_SERVER['QUERY_STRING'] and use explode() to split it up.

Mac
bmark
Forum Newbie
Posts: 9
Joined: Mon Feb 17, 2003 12:19 pm

Thanks for the response

Post 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.
Post Reply