[Typo3] capture FE username into form

jason knight jason.knight at emory.edu
Tue Nov 1 14:27:33 CET 2005


Many thanks!

-J

Dmitry Dulepov wrote:
> Hi!
> 
> Helge Vad wrote:
> 
>>>I'm trying to create a form that would 'capture' the front end user's
>>>login name (I'm using the macmade plugin) so that no one else could
>>>submit the form saying they were someone else. The form is password
>>>protected.
>>
>>$username =  $GLOBALS['TSFE']->fe_user->user['username'];
> 
> 
> Better:
> $fe_user = &$GLOBALS['TSFE']->fe_user;
> $username =  $fe_user->user[$fe_user->username_column];
> 
> Dmitry.



More information about the TYPO3-english mailing list