Database is not storing form results

helvecio 16 Dec, 2014
I've been looking around the forum and haven't found anything like what is happening to me.

The form I created is sending the data via e-mail, but it's not saving to the database.

I've added the debbuger and got the following:

Data Array
Array
(
    [chronoform] => associacao
    [event] => submit
    [format] => html
    [Itemid] => 191
    [option] => com_k2
    [view] => item
    [layout] => item
    [id] => 138
    [tipodepessoa] => Juridica
    [nome] => Maria da Couves
    [email] => helvecio.r@hgmdo.com
    [senha] => 678
    [confirmarsenha] => 678
    [endereco] => Rua Corrêa Dutra
    [bairro] => Catete
    [cidade] => Rio de Janeiro
    [cep] => 23456789
    [estado] => PI
    [telefone] => (21) 99247-7094
    [formacao] => Designer
    [areadeatuacao] => Design
    [enviar] => E N V I A R
    [associacao] => 
    [ip_address] => 200.152.98.64
)
Array
(
)

Errors
Array
(
)

Debug Info
Array
(
    [4] => Array
        (
            [DB Save] => Array
                (
                    [Queries] => Array
                        (
                            [0] => UPDATE `cwo0v_chronoforms_associacao` AS `Data` SET `tipodepessoa` = 'Juridica', `nome` = 'Maria da Couves', `email` = 'helvecio.r@hgmdo.com', `senha` = '678', `confirmarsenha` = '678', `endereco` = 'Rua Corrêa Dutra', `bairro` = 'Catete', `cidade` = 'Rio de Janeiro', `cep` = '23456789', `estado` = 'PI', `telefone` = '(21) 99247-7094', `formacao` = 'Designer', `areadeatuacao` = 'Design', `enviar` = 'E N V I A R', `user_id` = '0', `modified` = '2014-12-16 19:59:36' WHERE `id` = '138';
                        )

                )

        )

    [1] => Array
        (
            [Email] => Array
                (
                    [0] => An email with the details below was sent successfully:
                    [1] => To:helvecio.rj@gmail.com
                    [2] => Subject:Cadastro de Associado FNLIJ
                    [3] => From name:nome
                    [4] => From email:email
                    [5] => CC:
                    [6] => BCC:
                    [7] => Reply name:nome
                    [8] => Reply email:email
                    [9] => Attachments:
                    [10] => Body:
<table>
<tr><td>Tipo de Pessoa</td><td>Juridica</td></tr>
<tr><td>Nome</td><td>Maria da Couves</td></tr>
<tr><td>E-mail</td><td>helvecio.r@hgmdo.com</td></tr>
<tr><td>Senha</td><td>678</td></tr>
<tr><td>Confirmar Senha</td><td>678</td></tr>
<tr><td>Endereço</td><td>Rua Corrêa Dutra</td></tr>
<tr><td>Bairro</td><td>Catete</td></tr>
<tr><td>Cidade</td><td>Rio de Janeiro</td></tr>
<tr><td>CEP</td><td>23456789</td></tr>
<tr><td>Estado</td><td>PI</td></tr>
<tr><td>Telefone</td><td>(21) 99247-7094</td></tr>
<tr><td>Formação</td><td>Designer</td></tr>
<tr><td>Área de Atuação</td><td>Design</td></tr>
</table><br /><br />IP: 200.152.98.64
                )

        )

)


Am I wrong or isn't supposed to be saving to the database?

Thank you!!!
helvecio 16 Dec, 2014
THANK YOU GREY!!!!
<?php
unset($form->data['id']);
?>

worked!!

All is OK
This topic is locked and no more replies can be posted.