Hey everyone
I have installed the ccNewsletter component in Joomla.
I was wondering whether it was possible to make a form that registers a user in Joomla (as I do now) AND put the name and email into the ccNewsletter user table IF a "subscribe" checkbox has been checked?
Thanks - Rune
I have installed the ccNewsletter component in Joomla.
I was wondering whether it was possible to make a form that registers a user in Joomla (as I do now) AND put the name and email into the ccNewsletter user table IF a "subscribe" checkbox has been checked?
Thanks - Rune
Hi Rune,
Yes, you can do that - probably needs some custom php in the Autogenerated box to write the extra table info.
Bob
Yes, you can do that - probably needs some custom php in the Autogenerated box to write the extra table info.
Bob
Hey again
Can anyone post some code on how to do this?
Let's say I just want to put $_POST["username"] and $_POST["email"] into columns "username" and "email" in a table called "newsletter"?
Can anyone post some code on how to do this?
Let's say I just want to put $_POST["username"] and $_POST["email"] into columns "username" and "email" in a table called "newsletter"?
Hi ronze, which Chronofroms version do you have ?
Good, choose the newsletter table as one of the DB connection tables and once you submit a record will be inserted automatically to this table, if your table has columns with names similar to posted fields names then those columns will be loaded with posted values which what you need!
Ok, thanks!
But what if I select 2 tables, where both have a column named "email" that I want the email to be stored in?
Will it post to both the tables?
But what if I select 2 tables, where both have a column named "email" that I want the email to be stored in?
Will it post to both the tables?
yes
This topic is locked and no more replies can be posted.