More than one form with same class and differ scenarios on one page

<?php $a = new UserProfile(array(), 'password');

$b = new UserProfile(array(), 'profile');

how can I determine that form $a was posted, but not form $b?

give the submit button for the forms names, then check as to what form was submitted by its name and perform the logic you need too :)

maybe scenario param need to be posted too  ???