HOW-TO Making forms using version 3.2

Author Message

Shurbann Martes

Thursday 18 September 2003 2:00:10 pm

I was looking for a documentation about forms for the new version 3.2.

I found this one: http://www.ez.no/developer/ez_publish_3/documentation/customization/components/form_processing
But I don't understand it very much.

I have two questions:
1. Should I make a class for a form? And make a form object?

2. Should I put the <form> .... </form in the template?
2.a Does that mean I have to make for every new form a new template? Cause as I see the code in the example I can't make a general <form>.... </form>

I tried some things but they didn't work correctly.

Thomas Brandl

Friday 19 September 2003 7:41:18 am

You don't need to create a form class, just create an override template for the node you want your form to be.

In this template, put: <form action="/form/process">, some input-fields you want your visitor to fill and and optionally the hidden fields as shown in the doc.

Different forms need of course different templates then!

cheers
t

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.