Forums / Setup & design / how can I create simple forms?

how can I create simple forms?

Author Message

Albert Berenguer

Tuesday 03 February 2004 8:48:36 am

hi all,
i have some basic doubts about creating forms and I haven't found documentation on it. I'll try to explain it:

1st) in the first page I have a form with a SELECT list, i.e. with values 'a', 'b' and 'c'
2nd) i have a class with an attribute (an enum) with 'a', 'b' and 'c' as possible values

in the first page the user will choose one of the values in the list, and when the form is submitted I want to display all the objects in a specific folder that equal in its enum attribute, the value selected by the user.

I think it should be sthg easy, but I don't know how to share information between templates (or send information form a template to another), or what do I have to put in the ACTION field of the form.
Maybe it can be done without using forms, in that case, how?

I hope I explained fine, thanks in advance for any help provided.

James Packham

Tuesday 03 February 2004 9:42:41 am

I think (your description of what you want isn't very clear) you can find examples of what you want to do if you look at the advanced search templates in standard designs. That deals with using POST variables and selects together, which will help you carry vaiables over.

There's a specific part that might interest you, search for the string "SearchContentClassAttributeID" This is the bit on the advanced search that lets you choose a class and push a button, so that you can search by attribute of that class (wait, does that make sense?) I believe this is very similar to what you're doing?

Regards,

~James~

Albert Berenguer

Tuesday 03 February 2004 10:04:10 am

thanks for the reply, I'll take a look at it. Otherwise i found that maybe eZenv can help me as I can make a form which is sent to a specific node, and then with eZenv I can access the variables in the form.
I'll continue trying and post any progress...

thanks again