DB save twice and Email send twice too

alesdeluca 26 Jun, 2014
Hi, first of all many thanks for your great work, Chronoforms is excellent!

As other people in this forum I'm having some problem with the submit action: when user click on the submit button data are saved twice (one record with the right data and one empty) and the same happen with the email send function.

But this problem seems to afflict only special users, for registered and public user all works fine. Waht could be the problem?

Many thanks in advance for any suggestion!
GreyHead 27 Jun, 2014
Hi alesdeluca,

No obvious reason :-(

Please drag a Debugger action into the On Submit event, then submit the form and post the debug - including the 'dummy emails' results here.

Note: if you are using the Easy Wizard you can turn on Debug on the Others tab in CFv4 or the Setup tab in CFv5.

Bob
alesdeluca 27 Jun, 2014
Many thanks for your help! Here the debug:

Data Array
Array
(
    [chronoform] => Accomodation
    [event] => submit
    [firstname] => test
    [familyname] => test
    [country] => test
    [phone] => 333
    [fax] => 
    [email] => test@test.it
    [arrivaldate] => 28-06-2014
    [departuredate] => 29-06-2014
    [roomnumber] => 3
    [peoplenumber] => 3
    [nightnumber] => 3
    [roomtype] => double
    [district] => other
    [otherarea] => test
    [rate] => 111to150
    [favouritehotels] => test
    [button24] => Submit
    [ip_address] => 10.100.100.157
)

Array
(
)


Errors
Array
(
)


Debug Info
Array
(
    [3] => Array
        (
            [Email] => Array
                (
                    [0] => An email with the details below was sent successfully:
                    [1] => To:*****@***.**
                    [2] => Subject:Some subject
                    [3] => From name:A name
                    [4] => From email:*****@***.**
                    [5] => Reply name:
                    [6] => Reply email:
                    [7] => Attachments:
                    [8] => Body:
<div style="font-family: sans-serif;">
    
<p>Some text</p>

<br><br>

<h3 style="font-size: 17px; border-bottom: dotted 1px #bbb;">Personal information</h3>
<br>
<p><b>First name</b>: test</p>
<p><b>Family name</b>: test</p>
<p><b>Country</b>: test</p>
<p><b>Phone</b>: 333</p>
<p><b>Fax</b>: </p>
<p><b>Email</b>: test@test.it</p>

<br><br>

<h3 style="font-size: 17px; border-bottom: dotted 1px #bbb;">Reservetion data</h3>
<br>
<p><b>Arrival date</b>: 28-06-2014</p>
<p><b>Departure date</b>: 29-06-2014</p>
<p><b>Number of room</b>: 3</p>
<p><b>Number of people</b>: 3</p>
<p><b>Number of nights</b>: 3</p>
<p><b>Room Type</b>: double</p>
<p><b>District</b>: other</p>
<p><b>Other area</b>: test</p>
<p><b>Rate</b>: 111to150</p>
<p><b>If you have one or more favourite hotels, please provide us with its name and address</b>: test</p>

</div>

Poster's IP address:10.100.100.157
                )

        )

)
GreyHead 27 Jun, 2014
Hi alesdeluca,

Hmmm . . . there is no sign of a second email or a second DB Save there - not any DB Save at all :-(

There is something missing here.

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