[Typo3] capture FE username into form
Dmitry Dulepov
typo3 at fm-world.ru
Tue Nov 1 11:24:26 CET 2005
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