开发者

Joomla user info submission

开发者 https://www.devze.com 2023-04-04 20:36 出处:网络
I am submitting a form for users who are already logged in in the front end, but how can I distinguish between submittions? I want to have a \'user\' field in my DB that shows who submitted each entry

I am submitting a form for users who are already logged in in the front end, but how can I distinguish between submittions? I want to have a 'user' field in my DB that shows who submitted each entry, but how do I find out which user is log开发者_如何转开发ged in and submit that info with the form?

Also, I tried looking for some development tutorials for 1.7, but can't find anything decent, any suggestions are appreciated.

Thanks.


$user = JFactory::getUser();

You would then need to INSERT or SET this name in your database.

0

精彩评论

暂无评论...
验证码 换一张
取 消