i guess thet what you are trying to do is to display several buttons and to know wich on you pressed...
Well you can do this by adding a hidden field to your form, and using javascript set a particular value to the field...
something like this:
<form name=form method="" action="">
<inputm type=hidden name=wich_one>
<?
$size = 10;
for ($i=1;$i<$size;$i++)
{
echo "<input type=image onclick:javascrip:document.form.wich_one.value='$i';>
}
this will set up a form with ten buttons and each one will assign a value to the hidden field, when you pass it you will know wich one was pressed by the value of $wich_one