Duplicate DB records

ljk 22 May, 2008
Hello,

I am using chronoforms 2.3.8 on a Joomla 1.0.14 site.

I have a signup form, and have enabled the db table. When someone signs up, we are getting 2 records in the database for the each person's signup.

When the "On Submit code - before sending email:" was not working (<script> tags were missing), we were only getting one record for each user in the db.

In the "On Submit code - before sending email:" we have the following code:
<script language="JavaScript" type="text/javascript">
new Validation(this);

function formCallback(result, form) {
    window.status = "validation callback for form '" + form.id + "': result = " + result;
}
var valid = new Validation('signup', {immediate : true, onFormValidate : formCallback});
</script>


I don't know why that should be causing duplicate records.

Any ideas?

Thanks.
GreyHead 22 May, 2008
Hi ljk,

JavaScript goes in the Form JavaScript box (without the script tags). The OnSubmit after box if for processing the results after submission, you can probably leave it empty.

Oh, and it's easier to use the built in Validation.

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