Ditto here - I used hidden inputs (assuming I understood your question
correctly).

-kb

On Dec 5, 6:42 pm, "Steve Onnis" <[EMAIL PROTECTED]> wrote:
> i have done stuff like this before and created an XML structure but you
> could always dynamically create additional hidden form fields on the fly as
> required to store the data
>
> -----Original Message-----
> From: mootools-users@googlegroups.com
>
> [mailto:[EMAIL PROTECTED] On Behalf Of sankesolutions
> Sent: Saturday, 6 December 2008 2:23 AM
> To: MooTools Users
> Subject: Advice on how to merge user input to one form field design
>
> I have a page that allows users to enter a lot of information about
> them (metadata) they can then click on a icon which opens a modal
> window containing a googlemap which allows them to add locations, and
> a title for that location.
>
> Using mootools I can pass the value of a form field back to the
> original form, using onclose. The main page form then has a single
> hidden input field, which goes into the database as one field,
> serialised.
>
> The problem is a user can add as many locations as they want, there
> are also 3 types of location. Each with its own set of co-ordinates,
> which can be single or multiple!
>
> So I want to know the best way to handle all of this data, is it
> possible to load it into one form and then use Moo to submit that form
> to a single form field, or can I use moo to just append all the
> information into a single hidden input field, but if I do that, how
> does user input come into it. Im stumped and looking at some
> suggestions on how to set this up in the 'best' possible way.
>
> Currently I have a table, and each item is added as a new row.
>
> If its a single location then its added as 'placemark', a user input
> field for the name and then the co-ordinates go into a 3rd table cell.
> However if its a shape, then the first cell contains 'shape', user
> input field for name/description, and the third cell contains a list
> of co-ordinates one for each point, this is the same for lines.
>
> The problem I have is I could write it all to a single form field, but
> then how do I allow for user input of the titles, I need to use a form
> field for that? The other option is to take each row from a table and
> input it into the single form field, seperated by a pipe or similar,
> but then im not sure if I can read from other form fields.
>
> I hope the above makes some sense!! All feedback welcome!
> Paul

Reply via email to