Thanks for posting this. I was having the exact same issue and, like
you, was getting VERY frustrated. Here's a another post I found with
the same issue. Nate said there were some "bug fixes related to this
issue that got committed just recently" so I downloaded the latest
nightly build but that didn't resolve the issue for me. Either way,
here's the other thread I found:

http://groups.google.com/group/cake-php/browse_thread/thread/bc953181eb49d1db/802799a13bdb5a11?lnk=gst&q=security+component+not+posting#802799a13bdb5a11

I'm only using the Security component to require an SSL connection ATM
so I can live without it by writing my own utility for this but
obviously the goal is for everything to be working out of the box.



On Nov 21, 12:20 pm, natmlt <[EMAIL PROTECTED]> wrote:
> 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/actionand 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'mnottoo 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 [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
-~----------~----~----~----~------~----~------~--~---

Reply via email to