Hi Dave,

I observe that you are using capitalized field names! It may not help
you, but I suggest you try to use the naming convention
Model.fieldname - so that Certification.Certification is named as
Certification.certification!

Enjoy,
   John

On Jun 11, 8:20 pm, "Dave Maharaj :: WidePixels.com"
<[email protected]> wrote:
> I have a form and for some reason the names are all wacked. (Using Wizard
> Component) view the rendered HTML and see
> "name="data[Certification][Certification][Certification][]" " but its not
> for Programs..they show up fine. Code for the form is below and HTML below
> that.
>
> Ideas why this is happening?
>
> FORM VIEW:
> <?php echo $form->create('Investor',
> array('id'=>'NewListing','url'=>$this->here));?>
> <?php
>   echo
> $form->input('Certification.Certification',array('multiple'=>'checkbox',
>             'label'=>false));
>   ?>
> <?php
>   echo $form->input('Program.Program',array('multiple'=>'checkbox',
>             'label'=>false));
>   ?>
>
> <div class="submit"> <?php echo $form->submit('Continue',
> array('div'=>false));?> <?php echo $form->submit('Cancel',
> array('name'=>'Cancel','div'=>false));?> </div>
>   <?php echo $form->end();?> </div>
>
> The form gets rendered like this:
>
> <form id="NewListing" method="post" action="/investors/wizard/requirement">
>   <fieldset style="display:none;">
>     <input type="hidden" name="_method" value="POST" />
>   </fieldset>
>   <div class="input select">
>     <input type="hidden" name="data[Program][Program]" value="" />
>     <div class="checkbox">
>       <input type="checkbox" name="data[Program][Program][]" value="33"
> id="ProgramProgram33" />
>       <label for="ProgramProgram33">RSP</label>
>     </div>
>     <div class="checkbox">
>       <input type="checkbox" name="data[Program][Program][]" value="1"
> id="ProgramProgram1" />
>       <label for="ProgramProgram1">ACCTD</label>
>     </div>
>     <div class="checkbox">
>       <input type="checkbox" name="data[Program][Program][]" value="2"
> id="ProgramProgram2" />
>       <label for="ProgramProgram2">NIARB</label>
>     </div>
>   </div>
>   <div class="input select">
>   <input type="hidden"
> name="data[Certification][Certification][Certification]" value="" />
>   <div class="checkbox">
>     <input type="checkbox"
> name="data[Certification][Certification][Certification][]" value="13"
> id="CertificationCertification13" />
>     <label for="CertificationCertification13">State</label>
>   </div>
>   <div class="checkbox">
>     <input type="checkbox"
> name="data[Certification][Certification][Certification][]" value="1"
> id="CertificationCertification1" />
>     <label for="CertificationCertification1">Federal</label>
>   </div>
>   <div class="checkbox">
>     <input type="checkbox"
> name="data[Certification][Certification][Certification][]" value="9"
> id="CertificationCertification9" />
>     <label for="CertificationCertification9">National</label>
>   </div>
>   <div class="submit">
>     <input type="submit" value="Continue" />
>     <input type="submit" name="Cancel" value="Cancel" />
>   </div>
> </form>
>
> Dave
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

  • Weird Form Dave Maharaj :: WidePixels.com
    • Re: Weird Form John Andersen

Reply via email to