Hi guys,

I have a class form that enables users to enter information about a
class (ie. class id, class type, course name, registration
deadline...) and also allows users to dynamically add sessions.
Sessions consists of start/end datetime, location and description.  I
want them to add multiple sessions at a go before submitting the form
for processing and then saving the information to my database.

If I have multiple session sub-forms in my class form, won't all of
them have the same name?  Can I use name=session_description[]?  How
would I capture the data in my controller?

session_description[] = request.params.get('session_description')
for session in session_description:
  Save to DB

-Mark

--

You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en.


Reply via email to