I'm trying to make an image map and when I click on any part of it now it gives "Parse error: syntax error, unexpected T_VARIABLE in /usr/data2/hosted/angelauset/IMGMAPONE/map.php on line 11"
Code:
<?PHP
/* Gaia Image Map Go-er
Rudolph J Heuser (Jakobo on GaiaOnline.com
Modified: John T Wu (borobdin on GaiaOnline.com)
*/
require_once("imagemap.php")
// new imageMap
$myImageMap = new imageMap()
// AGG
$area = new Rect(16, 482, 90, 407, "http://www.gaiaonline.com/forum/chatterbox/anonymous-gift-giving-first-new-thread-of-10/t.62886585_1")
$myImageMap->addToMap($area)
$myImageMap->setDefaultURL("http://www.gaiaonline.com/profiles/4170512?_gaia_t_=5414")
// capture X and Y from query string
$x_and_y = $_SERVER["QUERY_STRING"]
$x_and_y = explode(",",$x_and_y)
$inX = $x_and_y[0]
$inY = $x_and_y[1]
unset($x_and_y)
// echo $inX. "," . $inY;
$myImageMap->testMap($inX, $inY)
?>
Comment