Membership Utility Question
2 posts by 2 authors in: Forums > CMS Builder
Last Post: November 10, 2010 (RSS)
By nmsinc - November 10, 2010
I'm using the IT Membership add-on. Upon the user logging in, I need to populate a form field with the users name so I need the PHP code to do this!
Any help would be appreciated.
Any help would be appreciated.
nmsinc
Re: [nmsinc] Membership Utility Question
By Jason - November 10, 2010
Hi,
If the user has logged in, all of their information is stored in an array called $CURRENT_USER.
So you can display their username in a text field like this:
Hope this helps
If the user has logged in, all of their information is stored in an array called $CURRENT_USER.
So you can display their username in a text field like this:
<input type="text" name="username" value="<?php echo @$CURRENT_USER['username'];?>" />
Hope this helps
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com
Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/
Jason Sauchuk - Project Manager
interactivetools.com
Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/