Hi Marc,
Yes I'm sure it is. You'd need to know the AcaJoom code for unsubscribe - at a guess it's act=unsubscribe.
Bob
But then it only deletes the data in the Acajoom table. What I'm looking for is that, if i unsubscribe using ChronoForms, it also deletes the data in the table created by ChronoForms.
How can I do that ?
Hi Marc,
Sorry, I misunderstood.
Yes I guess you could to that. You'd need to detect the unsubscribe in the OnSumbit after box and then have a little MySQL to delete the record DELETE FROM `table_name` WHERE `column_name` = 'identifier';
Bob
Hi Marc,
I suggest that you turn debug on for the form - you should then be able to see the ReDirect URL after you submit. Can you post it here please. I suspect that something may be a little wrong in there.
Bob
Hi Marc,
This looks like an older version of ChronoForms - do you know which version it is?
Bob
Hi Bob,
The component version is 2.5 J1.5 RC3.1 and the plugin version is 0.5
Greets,
Marc
Hi Bob,
I added the line but it has no effect. The Record is still in the database.
Greets,
Marc
Hi Marc,
You may need to remove the * after DELETE. To debug MySQL turn on Site Debug and check the query that is being created.
Bob
Hi Bob,
Sorry, still no results (I deleted the *)
Greets,
Marc
Hi Marc,
Please turn Site Debug on, submit the form then search through all the output to see if you can see this query. It would be good to see the actual SQL created and any error messages reported.
Bob
Hi Marc & Bob,
Just thought I'd pitch in with what I believe to be an error in your query;
You've surrounded the $email variable with '', which would prevent variable substitutions - so in fact, you are trying to remove records having '$email' (literally) as email, rather than the value of $email.
/Fredrik
Hi Fredrik,
Good catch - I missed that completely :-(
Bob
Hi Marc,
It would seem the * is still in there. Please doublecheck that your SQL-query starts with "DELETE FROM " rather than "DELETE * FROM ".
/Fredrik