I would suggest you to use things like Tag-it : http://aehlke.github.io/tag-it/
You can then use validate_and_insert web2py function to make sure you are not create security issue like sql injection if you insert ajax/post directly into the db. Richard On Wed, May 25, 2016 at 11:21 AM, goome <[email protected]> wrote: > Hello > i have a table 'post' and a table 'tag' and as there is a 'many to many' > relationship between them, i also created a table 'post_tag' that only has > reference to previous tables. > But now, in the form > to create post (form = SQLFORM(db.post)) how can i add field to > select/create tags? Is there any shortcut ora i have to build the form > manually? > Thanks > > -- > Resources: > - http://web2py.com > - http://web2py.com/book (Documentation) > - http://github.com/web2py/web2py (Source code) > - https://code.google.com/p/web2py/issues/list (Report Issues) > --- > You received this message because you are subscribed to the Google Groups > "web2py-users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.

