I found what was causing the problem. I was following the IBM tutorial chapter on security. In my app_controller I had:
var $components = array('Auth', 'Acl', 'Security'); If I take out the security component the multiple select works fine. So I guess for now I wont use that component. I don't know if I found a bug or what but maybe this info will help someone else in the future. On Nov 21, 7:47 am, natmlt <[EMAIL PROTECTED]> wrote: > The blank page is essentially a page with no code at all. No html > headers no script no nothing. What it should do is return to the same > controller/action and run the debug($this->params); > > When I do this: > > echo $form->input('id', array('type' => 'select', 'multiple'=>'true', > 'options' => array('1111'=>'aaaa', '2222'=>'bbbb', '3333'=>'cccc'))); > > The html ouput for it is: > > <div class="input select"> > <label for="DidId">Id</label> > <input type="hidden" value="" name="data[Did][id]"/> > <select id="DidId" multiple="multiple" name="data[Did][id][]"> > <option value="1111">aaaa</option> > <option value="2222">bbbb</option> > <option value="3333">cccc</option> > </select> > </div> > > My understanding is that last [] is a specific html design to tell it > to make an array. > > On Nov 21, 5:14 am, validkeys <[EMAIL PROTECTED]> wrote: > > > I'm not too sure what you mean by having a blank page after submitting > > the form. Anyways, are you submitting an array of multiple id's? I > > don't know why your select name is data[Did][id][]. It should just be > > data[Did][id] > > > echo $form->input('id'); > > > Is this what you are doing? > > > On Nov 21, 12:48 am, natmlt <[EMAIL PROTECTED]> wrote: > > > > I have been banging my head against this issue all evening. Hopefully > > > someone might notice a typo or something. > > > I have simplified my form down to nothing in hopes of finding the > > > issue. I also decided to write the form object rather than using the > > > form helper to see if it help me find my bug. What it seems to boil > > > down to is the name property. If use the name the form helper gave my > > > object name="data[Did][id][]" when I submit the form all I ever get is > > > a complete blank page. If I change the object name to use any other > > > word but data the form submits fine. I am completely baffled. > > > > I have tested this in Firefox 3.0.4 and use Firebug. > > > I also tried Safari 3.2 and Flock 1.0.8 > > > I am developing with Cake 1.2.0.7692_RC3 > > > Any suggestions would be greatly appreciated. > > > > I have dids_controller.php: > > > <?php > > > class DidsController extends AppController { > > > > var $name = 'Dids'; > > > > var $helpers = array('Html', 'Form'); > > > > function assign() { > > > debug($this->params); > > > > } > > > > } > > > > ?> > > > > My view is assign.ctp: > > > > <?php echo $form->create('Did', array('action' => 'assign')); ?> > > > <select name="test[Did][id][]" multiple="multiple"> > > > <option value="1111">aaaa</option> > > > <option value="2222">bbbb</option> > > > <option value="3333">cccc</option> > > > </select> > > > <?php echo $form->end('Save Did'); ?> --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" 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 -~----------~----~----~----~------~----~------~--~---