dongxiejie9387 2011-09-13 20:16 采纳率: 100%
浏览 62

Joomla用户信息提交

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 logged 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.

  • 写回答

1条回答 默认 最新

  • dou6577 2011-09-13 21:26
    关注
    $user = JFactory::getUser();
    

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

    评论

报告相同问题?

悬赏问题

  • ¥100 任意维数的K均值聚类
  • ¥15 stamps做sbas-insar,时序沉降图怎么画
  • ¥15 unity第一人称射击小游戏,有demo,在原脚本的基础上进行修改以达到要求
  • ¥15 买了个传感器,根据商家发的代码和步骤使用但是代码报错了不会改,有没有人可以看看
  • ¥15 关于#Java#的问题,如何解决?
  • ¥15 加热介质是液体,换热器壳侧导热系数和总的导热系数怎么算
  • ¥100 嵌入式系统基于PIC16F882和热敏电阻的数字温度计
  • ¥15 cmd cl 0x000007b
  • ¥20 BAPI_PR_CHANGE how to add account assignment information for service line
  • ¥500 火焰左右视图、视差(基于双目相机)