The controller:

function stalking(){
        if($this->Session->check('Agreed')){
            if($this->Session->read('Agreed') == true){

                if(!empty($this->data)){
                    $this->log($this->data, LOG_DEBUG);
                    if($this->Survey->save($this->data)){
                        $this->redirect(array('action' => 'thanks'));
                    }
                }else{
                }
            }else{
                $this->redirect(array('action' => 'instructions'));
            }
        }
        else{
            $this->redirect(array('action' => 'instructions'));
        }

    }
//////////////////////////////////////////////////////////////////////////////////

The array, as it appears in the debug.log:
2010-03-06 01:32:58 Debug: Array
(
    [Survey] => Array
        (
            [genero] => masculino
            [idade] => 22
            [nacionalidade] => Portuguesa
            [regiao_actual] => centro
            [local_habita] => rural
            [estado_civil] => divorciado_separado
            [relacao_amorosa] => sim
            [relacao_amorosa_tipo] => afectiva
            [relacao_amorosa_tipo_outra] =>
            [relacao_amorosa_duracao] => 6a12meses
            [habilitacoes_literarias] => Curso Superior
            [profissao] => Engenheiro Informático
            [grau_conhecimento] => nenhum
            [partei_alvo_interesse] => sim
            [parteii_alvo_interesse_mais_que_uma_pessoa] => sim
            [parteii_alvo_interesse_quantas_pessoas] => 4
            [parteii_sexo_pessoa] => mulher
            [parteii_tipo_pessoa] => e
            [parteii_tipo_pessoa_outro] =>
            [parteii_4_1_relacao_pessoa_antes] => 0
            [parteii_4_2_relacao_pessoa_durante] => 0
            [parteii_4_3_relacao_pessoa_depois] => 0
            [parteii_5_alvo_interesse] => nao
            [parteii_5_1_alvo_interesse_quando] => ultimoano
            [parteii_6_1] => 1
            [parteii_6_2] => 0
            [parteii_6_3] => 0
            [parteii_6_4] => 1
            [parteii_6_5] => 0
            [parteii_6_6] => 0
            [parteii_6_7] => 0
            [parteii_6_8] => 0
            [parteii_6_9] => 0
            [parteii_6_10] => 1
            [parteii_6_10_resposta] => murros na cara
            [parteii_6_11] => 0
            [parteii_6_12] => pontapes
            [parteii_7] => mensalmente
            [parteii_8] => menos2semanas
            [parteiii_1_area1] => naoafectou
            [parteiii_1_area2] => umpouco
            [parteiii_1_area3] => umpouco
            [parteiii_1_area4] => quasenada
            [parteiii_1_area5] => naoafectou
            [parteiii_1_area6] => umpouco
            [parteiii_1_area7] => umpouco
            [parteiii_1_outros_resposta] => nada
            [parteiii_1_outros] => quasenada
            [parteiii_2] => umpoucoassustado
            [parteiv_1] => sim
            [dummy] => 1
            [parteiv_2_1] => sim
            [parteiv_2_2] =>
            [parteiv_2_3] =>
            [parteiv_2_4] => nao
            [parteiv_2_5] =>
            [parteiv_2_6] =>
            [parteiv_2_7] =>
            [parteiv_2_8_outros_resposta] => ui k pessoas más
            [parteiv_2_8] => sim
            [a1] => 1
            [a2] => 2
            [a3] => 2
            [a4] => 2
            [a5] => 2
            [b1] => 2
            [b2] => 2
            [b3] => 2
            [b4] => 2
            [b5] => 2
            [c1] => 2
            [c2] => 2
            [c3] => 2
            [c4] => 2
            [c5] => 2
            [d1] => 2
            [d2] => 2
            [d3] => 2
            [d4] => 2
            [d5] => 2
            [e1] => 2
            [e2] => 2
            [e3] => 2
            [e4] => 2
            [e5] => 2
            [f1] => 2
            [f2] => 2
            [f3] => 2
            [f4] => 2
            [f5] => 2
            [g1] => 2
            [g2] => 2
            [g3] => 2
            [g4] => 2
            [g5] => 2
            [h1] => 2
            [h2] => 2
            [h3] => 2
            [h4] => 2
            [h5] => 2
            [i1] => 2
            [i2] => 2
            [i3] => 2
            [i4] => 2
            [i5] => 2
            [comentario] => comentarios enorme
ui ui
        )

)

Sorry, about the length....

> Have you tried you form with only 39 fields?
I did not.



On Mar 6, 7:32 am, John Andersen <j.andersen...@gmail.com> wrote:
> Have you tried you form with only 39 fields?
> Please show the array from $this->data and the controller method that
> process the array before saving it.
> Enjoy,
>    John
>
> On Mar 6, 3:54 am, André Cardoso <thyandrecard...@gmail.com> wrote:
>
> > Hi.
>
> > I have a problem when saving data from a big form.
>
> > The form has 102 fields which are all saved to the same table. The
> > problem is that cakephp is only generating a mysql query which goes to
> > the 38th field. The rest of the fields are ignored.
>
> > I've dumped the $this->data to the log file and ALL the data (all the
> > 102 fields) are there. So, before the action save($this->data), the
> > data is all there.
>
> > I've inspected the logs created by MySQL and the query generated by
> > cake contains only 38 fields...
>
> > Can anyone help me????
> > Thanks.
> > André.

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to