我有这两个按钮,
<?php echo (($active_players >= 25 && !$active_players_check_bypass) ? $html->submit('Submit Registration', array('onclick'=>'return window.confirm("You have reached your maximum allowable players per team. In order to register this player, you must pay the $25.00 required overage fee in order to continue. Do you wish to continue with the registration?")')) : $html->submit('Submit Registration'));
echo $html->submit('Register Player using Registration Credits', array('id'=>'submitregistrationusingcredits')); // this will use the credits of the team
?>
第一个按钮是Submit Registration
,另一个是Register Player using Registration Credits
,现在有没有办法知道我点击了哪个按钮?我正在使用CakePHP
并且我对此很陌生,有没有办法知道我点击了哪个按钮,以便在我的控制器中验证表单时,我将能够知道我点击了哪个按钮并拥有属于每个按钮的进程?谢谢。