This is exactly what I was looking for. It shows how to create an input tag with an image, identify it with a mysql record id and process that record id after the image is selected. Thought I\'d pass it on. It\'s from \"Kaif\" in another forum. Thanks, all.
--------------------------------------------
While using the <INPUT TYPE=\"IMAGE\"> with the PHP, keep in mind that Internet Explorer 6 or earlier do not support the VALUE attribute if the INPUT TYPE is IMAGE. But if you are using Netscape or Mozilla then you can use the VALUE attribute.
Hence you can not do this in Interent Explorer:
print \"<input type=\"image\" name=\"imageView\" value=\"\". $row[0] . src=\"images/viewClient.gif\">\";
If you still want to do this in Intenent Explorer then you have to pass a Value to an Image with Hidden variable like:
print \"<input type=\"hidden\" name=\"clientView\" value=\"\". $row[0] . \"\">\";
print \"<input type=\"image\" name=\"imageView\" src=\"images/viewClient.gif\">\";
And on the next script you can get the value of these variables by doing something like:
$myArray = array();
$myArray = $HTTP_POST_VARS;
print_r($myArray);
for ($i=0; $i< count($myArray); $i++)
{
list($key, $value) = each($HTTP_POST_VARS);
if (substr($key, 0, 5) == \"image\")
{
$image = substr($key, 5, -2);
print \"<BR>image: \" . $image . \"<BR>\";
}
}
Hope this helps.
--------------------------------------------------------