I’m trying to convert an existing site to MODx, and it has several forms which are multi-page and end up populating a database, sending notification emails and passing some data to an external payment processor.
From my reading I’ve ascertained that eForm can (with work) handle multi-page forms, and it can certainly send emails, but can I use it for the other 2 functions - populating a MySQL database and passing the data on to another page as POST ?
Thanks.
You can certainly use eForm to save info to a database using
eForm2db (which is just an eForm event function). And you can store data from one page in a session var or in a session table in the database and pull it out on the next page (which will probably be easier than trying to get POST vars to go from page-to-page and not be broken if people click Back). I always decide that it’s less trouble to put multi-page forms on a single page with Javascript tabs between "pages" (I did actual multiple pages once and it was a pain).
Thanks for the speedy responses. It sounds like I might be better off just throwing the forms & php I’m using on the existing site into chunks and inserting them. That should work, right? There’s no reason javascript validation shouldn’t work the same either, is there?
Quote from: jbloggs2002 at Dec 19, 2008, 08:09 PM
Thanks for the speedy responses. It sounds like I might be better off just throwing the forms & php I’m using on the existing site into chunks and inserting them. That should work, right? There’s no reason javascript validation shouldn’t work the same either, is there?
You mean snippets (chunks can’t contain PHP code), and yes they should work about the same as they do as standalone scripts.
Thanks for the clarification. I really appreciate all the help I’ve gotten in this community.
Quote from: jbloggs2002 at Dec 19, 2008, 08:40 PM
I really appreciate all the help I’ve gotten in this community.
Welcome to it!