HTML Code:
<form method="post" name="postme">
<table width="100" >
<tr>
<td width="50"><input type="text" name="Textbox 1" /></td>
<td width="50"><input type="text" name="Textbox 2" /></td>
</tr>
<tr>
<td width="50"><input type="submit" name="B1" value="Button 1"/></td>
<td width="50"><input type="submit" name="B2" value="Button 2" /></td>
</tr>
</table>
</form>

PHP Code:

if($_POST['B1']){
echo 
"button 1 Pressed";
}
if(
$_POST['B2']){
echo 
"button 2 pressed";

There are two problems I am having with '$_POST['']' and I don't know if there is a way to solve them?

1st - if a button is submitted then the page is refreshed (possibly by a button on a different form?) it gets re-submitted

2nd - if a textbox is submited (ie with the enter key) the last button submitted is re-submitted

I probably just being pickie but If anyone knows away around this, or is it me just getting these???

Thanks