You are here: Re: [PHP] possible jscript/php/frames question!! « PHP « IT news, forums, messages
Re: [PHP] possible jscript/php/frames question!!

Posted by "Richard Lynch" on 06/18/05 23:51

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация