Re: possible jscript/php/frames question!!

From: Date: Sat, 18 Jun 2005 20:51:00 +0000
Subject: Re: possible jscript/php/frames question!!
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-217185@lists.php.net to get a copy of this message
On Fri, June 17, 2005 3:47 pm, bruce said: > i've got a problem where i'm trying to play with imagemaps. i created a > test > image map, but when i select inside the image map, i 'see' the "?x,y" from > the imagemap, appended to the url in the browser address bar... i get > http://foo.com?3,5 etc... > > is there a way to prevent this from occuring?? Sure. Change your LINK to a FORM with an INPUT TYPE="image" and use METHOD="POST" on the FORM tag. <form method="post"><input type="image" name="clicked" src="images/clicker.jpg"></form> <?php if (isset($clicked_x)){ echo "($clicked_x, $clicked_y)<br />"; } ?> I dunno why everybody else gave you such complicated answers. It's still not a PHP question, though, except it's confusing PHP changes ".x" and ".y" into "_x" and "_y" on the variable names because "." is not valid in variable names. :-) There, that made this post on-topic. Sort of. -- Like Music? http://l-i-e.com/artists.htm

« previous php.general (#217185) next »