If I understand correctly, this is plain HTML.
<INPUT TYPE="SUBMIT" VALUE="I AGREE">
If you are asking about figuring out when to print "I agree" or "Submit", then you have to tell us more information about your system.
Try and define a variable a certain value on the final registration page.
Check the flag-variable, and print the proper submit button.
Hope that helped,
andre @ performance technologies