koze85
Member
Hi
I have a simple task which I am struggling with
I have a form with a text element registration___FUUsername
I want to echo its value on load on the from but that is not happening
The element has a value
and my code is
$Fname = $formModel->formData['registration___FUUsername'];
$user =& JFactory::getUser();
if (!$user->guest) {
echo 'You are logged in as:<br />';
echo 'User name: ' . $user->username . '<br />';
echo 'Real name: ' . $user->name . '<br />';
echo 'User ID : ' . $user->id . '<br />';
echo $Fname
}
Everything else is echoed but not the $Fname ...
please help
I have a simple task which I am struggling with
I have a form with a text element registration___FUUsername
I want to echo its value on load on the from but that is not happening
The element has a value
and my code is
$Fname = $formModel->formData['registration___FUUsername'];
$user =& JFactory::getUser();
if (!$user->guest) {
echo 'You are logged in as:<br />';
echo 'User name: ' . $user->username . '<br />';
echo 'Real name: ' . $user->name . '<br />';
echo 'User ID : ' . $user->id . '<br />';
echo $Fname
}
Everything else is echoed but not the $Fname ...
please help