Re: Clickable image maps

From: Date: Mon, 13 Dec 2004 18:34:47 +0000
Subject: Re: Clickable image maps
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-204210@lists.php.net to get a copy of this message
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

« previous php.general (#204210) next »