If you have a form with multiple buttons, you can detect which button was clicked by checking the passed parameters. Learn how in this episode.

Read more at the source