On Oct 7, 3:00 pm, "Jon Bennett" <[EMAIL PROTECTED]> wrote:
> hi Stefan,
>
> > Is it possible to use checkboxes instead of a multiple select to
> > represent data in a many-to-many relation?
>
> I wrote a helper ages ago that does just that, check
> outhttp://cakeforge.org/snippet/detail.php?type=snippet&id=190
This is off-topic for this thread; but, I believe this thread
attracts HABTM experts. I have a problem exactly mentioned here in
http://groups.google.com/group/cake-php/browse_frm/thread/d9a3860f821ced7a/0cd5dfad14617acb?#0cd5dfad14617acb
Say, we have posts, tags and posts_tags tables. posts_tags table
has extra data apart from map values, say, id, post_id, tag_id, foo1,
foo2
If it's classical way, when adding a post, I'd have a DOM append so
that the fields for posts_tags can be added in posts/add/id:
Form for "post" record
DOM form for related tags:
checkboxes to select tags, input box for foo1, foo2 [JS: click to add
more tag info]
How this can be achieved? TIA
--
<?php echo 'Just another PHP saint'; ?>
Email: rrjanbiah-at-Y!com Blog: http://rajeshanbiah.blogspot.com/
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" 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/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---