Imagemap and $_GET
Moderator: General Moderators
-
Shendemiar
- Forum Contributor
- Posts: 404
- Joined: Thu Jan 08, 2004 8:28 am
Imagemap and $_GET
Can i, and how, use $_get to receive the coordinates submittend my imagemap like http://www.kana.koira/blaah?123,345
-
Shendemiar
- Forum Contributor
- Posts: 404
- Joined: Thu Jan 08, 2004 8:28 am
-
Shendemiar
- Forum Contributor
- Posts: 404
- Joined: Thu Jan 08, 2004 8:28 am
Oh I see. I thought you where in control of setting up the GET variables.Shendemiar wrote:But how could i make the imagemap to output x=50&y=36 ?Sami wrote:A more simple solution is "page.php?x=50&y=36".
Then simply echo() the two $_GET variables.
It outputs ?50,36 by default
Indeed your way is best, as long as nothing else is submit within the GET method.
-
Shendemiar
- Forum Contributor
- Posts: 404
- Joined: Thu Jan 08, 2004 8:28 am
Indeed, but now i would like to submit something else too.Indeed your way is best, as long as nothing else is submit within the GET method.
Is there an easy way to submit various amount of $_GET data and imagemap (format= ?123,234) data at the same time.
Or it wouldnt be difficult but combining that stuff with istantjumping dropdownmenus that point back to itself is too complicated for me.
I would like the page to maintains all the settings and the coordinates even when any of the setting is changed. Maybe i have to drop that and start from clean table after any option change.
NOUP! I got it
I use fake _GET item like cords=* at the last element of the url. Then i allways get cords=*?123,234 and $_GET['cords']=*?123,234
And thats easy to parse...