Forums / Setup & design / Custom forms and form handling?

Custom forms and form handling?

Author Message

Luis Cruz

Monday 22 November 2004 1:19:47 pm

Greetings all; I have some questions regarding creating custom forms and form processing. Here is what I need:

1. Form is displayed that contains information about one or more objects in ezPublish. For example, I may have a sign-up page that includes a drop-down list of all "events" or it might just contain the information for the event as one or more hidden fields.

2. When the form is submitted, any number of actions can occur, e.g., email might be sent to an admin as well as the user, information might have to be sent to an external database or system, etc.

2a. If there is some sort of input error, the form processing code should redirect back to the original form page. The form should display the error message(s).

3. After the form has been processed successfully, it should redirect back to a custom "submitted" page. For example, after signing up for an event, the page the user sees after form submission should say "Thank you, <user>, for registering for event <foo>" where <user> and <foo> are values passed into the page.

I have been reading through the documentation as well as the "Learning eZ publish 3" book. It appears the path I should take is to build a module extension, but I would like to hear if someone else has already implemented this and has any advice, code, etc.

Regards.