Process Form Submittal?

Permalink
Hi, I didn't see anything in the docs about processing the submittal of a c5 form block. I see that it posts to index.php and then redirects back to the form page.
So, is it normal/proper to handle the post data in index.php? All I really need to do is format the fields and email the result...
Just want to be sure I'm doing it right.

thanks