I have a form with many fields. Let's simplify and pretend it's only got forename/surname/email here for now. I have to use Perl to process the form because I need to do other stuff with it later.
On submitting the form I need it to do three things:
To put the responses to this form into a text file on the server.
To send an email alert out saying that there's been a new form submitted. It doesn't need to contain the form data, just that a new one is there.
To display a “thanks for filling in the form” page to the person who's just hit submit.
I've tried concentrating on getting it to do any one of those things, but I still don't understand Perl enough to be able to do it. I'm a HTML user at best. It seems like a series of fairly simple things to do, and seems like the sort of thing for which there would be a "stock answer" somewhere, but a lot of Googling and reading of answers here hasn't given me anything! If I could just get some idea on how to do the first one, that would be a great start, but I can't even get that far… ☹</p>