class has nothing to do with it - ignore it, it's just css styling of the button
to get the name of the button being pressed do this, as I mentioned:
if (isset($POST['submitaa'] && $POST['submitaa']=='Confirm') ) echo 'subbtna clicked';
do that for each button, at the place where you process your $_POST values
(which might be the top of the page or you may have the specified a script in your form action)
that will give you the name of the button pressed
is your form method GET or POST??
if it is GET change $POST to $GET