How to fetch current logged user's name in a form in an input field

Kindly help to to fetch the username of a current user to be made available in an input field of a form

Actually I am making a form in which their is a field that displayed the field “FORM PREPARED BY” and in this file I want the name of the current user logged in and then save this value in database.

I would highly appreciate if theirs a quick response for this issue…

Re: How to fetch current logged user’s name in a form in an input field

Hello,

You could store the username right after he logs in. Before your control_login application redirects to your menu, you could store his username this way:

[username] = {login};

And then you could use [username] anywhere on your project.

regards,
Bernhard Bernsmann