Its got abit of php in but the code is... <form method="post" action=""> <input type="image" src="delete.png" name="delete" value="' . <? echo $row['MessageId'] ?> . '" /></form> On a loop, basically, each button will have a different $row['MessageId'] For example, button 1 will be a value of 1, button 2 will be a value of 2... So how can i retrieve the value? -What code can i use to get the value of that button? Later on i want to make $messageid = value of the button pressed... So how do I get the value of the button pressed? Thanks alot, James