CHtml::submitButton with onClick

I have inherited a php app with the yii framework. The syntax is foreign to me. I need the submit/register button to pop a disclaimer. So, I’m trying to do something like this…

echo ‘<div class=“row buttons”>’;

echo CHtml::submitButton('Create Now',array('onClick'=&quot;return confirm('You agree to the term to register.&#092;n&#092;nPress OK to continue.')&quot;)); 

echo ‘</div>’;

Anyone have a suggestion, this isn’t working???

After playing with it for awhile I came up with…

echo ‘<div class=“row buttons”>’;

echo CHtml: ubmitButton('Save', array('confirm'=&gt;'You agree to the term to register.&#092;n&#092;nPress OK to continue.'));

echo ‘</div>’;

It works, but it comes up twice like the post from #135921