Forums

retrieve submitters email+username from mysql database

Efstathiou 06 May, 2012
I have just started learning php so I am a novice, please go easy with the code

I have joomla installed which has its own mysql database

when I create a table in chronoforms it already includes a field for user id (cf_user_id) and it retrieves that data from the joomla database I am assuming, then it saves it in the database with every submission


what id like to be able to do is with every submission instead of capturing just the user id, do the same with user email and user name so that a)they wont have to input it themselves when they are filling in the form, since they are already logged in, b) so that I will be able to dynamically send the completed form to the sumbiters email c)so that when I received the email with the submiters forms it will be easy to archive and work with

can anyone help on this?
GreyHead 06 May, 2012
Hi Efstathiou ,

I'm packing to go on a trip for a few days so my apologies for the short answer. This has been answered here several time before. Please try seaching on 'getUser CFv4' to find some of them.

Bob
Efstathiou 12 May, 2012
thanks I found what I was looking for
This topic is locked and no more replies can be posted.