Hi Dan,

You might want to use the html helper.  I believe that you should be
using id="data..." as opposed to name="data..." but the helper will
take care of that.  I'm assuming that the relationship is a has_many.
In which case you should check out the models chapter of the cake
manual.  See the "Saving Related Model Data" section.  Its near the
bottom of the chapter.

I created an action and view to test some things out.  Here they are:

    function temp(){
        if(empty($this->data)){
            $this->render();
            exit();
        }
        else{
            print_r($this->data);
        }
    }

===view===

<form method="post" action="<?php echo($html->url('/pracs/temp')); ?>"
>
<?php echo($html->checkbox('Tag/Tag', 'check1', array('multiple' =>
'multiple', 'value'=>'1'))); ?><br />
<?php echo($html->checkbox('Tag/Tag', 'check2', array('multiple' =>
'multiple', 'value'=>'2'))); ?><br />
<?php echo($html->checkbox('Tag/Tag', 'check3', array('multiple' =>
'multiple', 'value'=>'3'))); ?><br />
<?php echo($html->checkbox('Tag/Tag', 'check4', array('multiple' =>
'multiple', 'value'=>'4'))); ?><br />
<?php echo($html->checkbox('Tag/Tag', 'check5', array('multiple' =>
'multiple', 'value'=>'5'))); ?><br />
<?php echo($html->checkbox('Tag/Tag', 'check6', array('multiple' =>
'multiple', 'value'=>'6'))); ?><br />
<?php echo ($html->selectTag('Tag/Tag',
array('1'=>'one','2'=>'two','3'=>'three'), null, array('multiple' =>
'multiple'))); ?><br />
<?php echo $html->submit('Login'); ?>
</form>

You can then fool around with the form submissions to see what the
data array looks like.  For some reason, the checkboxes to do not work
like the select box does.  I do know a hack to make the select boxes
work but I want to see if this leads anywhere or if any other people
can add comments.

I haven't specifically run into this problem yet so I am interested to
see what you find out.  Please let me know what happens.

Later,

Guy


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to