Forums / Developer / Form validation / Comment48494
Jérôme Vieilledent
Monday 03 September 2007 1:27:17 pm
Hi Lazaro and thanks for your reply :-)
OK, i'm gonna try to explain further... My site is for a travel agency and proposes several destinations. Each destination has a commercial proposition, but the user must have the opportunity to build his own. For that, each destination has predefined fields which are defined in the admin. The administrator must have the possibility to add as many fields (or options) as he wishes.Thus, this form has to be built dynamically, with these parameters...
I made a class named <b>"Destinations"</b> with an attribute (actually 2) for the options. The datatype I chose for this attribute is <b>"Option"</b>, so that the admin would be able to add as many as he wishes. I don't know if this is the best way for that, but it seemed quite efficient to me.You can see an example (not made with Exponential) here : http://horizon-pleine-nature.com/destinations/composer/2.html
Another question related with this site. I would like to do a contact form and for that I made a class "Contact", with attributes marked as "information collector". In my template I made a HTML form with <b>/action/content</b> action and a POST method. I named the submit button <b>ActionCollectInformation</b>, but when I post the form, Exponential tells me that <i>the object is not available</i>... I tried many things but nothink seemed to work :-(
Thanks for your help