I read the topic http://www.chronoengine.com/forums/posts/f5/t9286.html and I tried to do a reply but the topic is locked. My problem is the following.
I used the code below in a custom field and got the username info of the user correctly, but I can not recieve it at my email account.
................................................................
Also I used the same code to get the email info of my user, with the difference that I change the word "username" with the word "email" and I had the same results.
Can anybody help me please?
Thank you
I used the code below in a custom field and got the username info of the user correctly, but I can not recieve it at my email account.
<?php
if ( isset($form->data['username']) && $form->data['username'] ) {
$username = $form->data['username'];
} else {
$user =& JFactory::getUser();
$username = $user->username;
}
?>
<input type='text' name='username' id='username' value='<?php echo $user->username; ?>' />
................................................................
Also I used the same code to get the email info of my user, with the difference that I change the word "username" with the word "email" and I had the same results.
Can anybody help me please?
Thank you