Hi everybody,
I just play with the "login" functions, and is awesome!! Congrats for this easy way to implement a Login on a website!
But, it is possible to use the "login name" (after log in) into a form? I want to create a simple form, but as the user is already logged, I want to use his/her credentials as part of a field (hidden field or other). It is possible? Thanks in advance!!!
Login Name as a Form field
Forum rules
IMPORTANT NOTE!!
DO YOU HAVE A QUESTION OR PROBLEM AND WANT QUICK HELP?
THEN PLEASE SHARE A "DEMO" PROJECT.
PLEASE READ THE FORUM RULES BEFORE YOU POST:
http://www.wysiwygwebbuilder.com/forum/viewtopic.php?f=12&t=1901
MUST READ:
http://www.wysiwygwebbuilder.com/getting_started.html
WYSIWYG Web Builder FAQ
IMPORTANT NOTE!!
DO YOU HAVE A QUESTION OR PROBLEM AND WANT QUICK HELP?
THEN PLEASE SHARE A "DEMO" PROJECT.
PLEASE READ THE FORUM RULES BEFORE YOU POST:
http://www.wysiwygwebbuilder.com/forum/viewtopic.php?f=12&t=1901
MUST READ:
http://www.wysiwygwebbuilder.com/getting_started.html
WYSIWYG Web Builder FAQ
Re: Login Name as a Form field
The username is stored in a session variable
So, you can use this somewhere else in the website.
Code: Select all
$_SESSION['username']
Re: Login Name as a Form field
That’s great Pablo!!
But sorry to ask...how can I add the username to a form? With hidden field? Could you put a small example?
Thanks in advance!
But sorry to ask...how can I add the username to a form? With hidden field? Could you put a small example?
Thanks in advance!
Re: Login Name as a Form field
I cannot teach you how to implement custom code.
But you can try this in a hidden field:
But you can try this in a hidden field:
Code: Select all
<?php echo $_SESSION['username']; ?>
Re: Login Name as a Form field
Thanks a lot Pablo!
It works perfectly!! You are awesome!
Have a nice day!
It works perfectly!! You are awesome!
Have a nice day!
Re: Login Name as a Form field
put this code to the editbox on Value Field ? ls this your mean ?Pablo wrote: Thu Jul 16, 2020 5:17 pm I cannot teach you how to implement custom code.
But you can try this in a hidden field:Code: Select all
<?php echo $_SESSION['username']; ?>
Re: Login Name as a Form field
You can the code in a hidden field (in the hidden fields properties of the form)
Re: Login Name as a Form field
Thanks dear pabloPablo wrote: Thu Dec 01, 2022 3:51 pm You can the code in a hidden field (in the hidden fields properties of the form)