Re: Clickable image maps

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Kurt Blom wrote:
> Can PHP handle with CIM's (Clickable Image Maps) to get data from a html
> page (instead of using checkboxes...)?
> I searched the online doc for it but no matches.

Sure.

<FORM ACTION="test.php" METHOD="POST">
<INPUT TYPE="IMAGE" NAME="cim" SRC="yourimage.jpg">
</FORM>
<?php
  if (isset($_POST)){
    var_dump($_POST);
  }
?>

Note that the HTTP variables cim.x and cim.y are probably converted to
$_POST['cim_x'] and $_POST['cim_y'] because $cim.x is not a kosher
variable name in PHP, but $cim_x is.

You can also use USEMAP and <MAP > tags to do all that fancy image map stuff.

PHP will give you access to whatever your HTML/HTTP form sends.

-- 
Like Music?
http://l-i-e.com/artists.htm

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux