i want to userid and username

Comments

wladimirww’s picture

Input format - 'PHP'


global $user;
print '<a href="'.url('user/'.$user->uid).'">'.$user->name.'</a><br />';
print '<a href="mailto:'.$user->mail.'">'.$user->mail.'</a>';

__________________________________
My Drupal 6 at Radio Site

vimalkarthik’s picture

thank you mr.wladmirww i could use this coding to my project i searched lot but now only i got form your commands once again thank you