I'm writing an application in ColdFusion, and even though it is mostly stable, it errors every so often. Because it has replaced the old application already, sometimes it is the users who get errors instead of me.
I've created a nice page that people get when they get an error that sends information to me, such as error, referrer, error on which page, line number, etc.
The only thing I can't get to seem to work is getting the form data submitted if there is any. I don't know what page it errored on beforehand, so I can't just output '#form.field#'.
For example if:
form.abc = 1
form.def = 2
How can i get the variable names and value from 'form' without knowing them beforehand?
Is this document on looping over a structure somewhere along the right path?
Also, I'm looking for a good way to store that data in a database, because that is where the other information about the error is stored, and I don't really want to have to put it in an email to me.