Anybody could please help on this issue ... How to insert a server variable, like a username, in a field. After login, goes to the form and the field "username" should identify the username automaticaly.
<?php
$username = $_POST['username'];
echo 'Your username is '.$username.' Welcome to the site' ;
?>
$username = $_POST['username'];
echo 'Your username is '.$username.' Welcome to the site' ;
?>
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.
This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
It's easy to overlook something you're not looking for.
This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
Thanks for the support, but where exactly do i put that code? And ... i need it in the form field
Ok your after something else then what I was thinking. I thought you were writing your own script.
Your going to need a login script.
Your going to need a login script.
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.
This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
It's easy to overlook something you're not looking for.
This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
I already build my login page (with the help of security assist from webassist) and then build a form with WFB and need a field with the username that the user have to submit
If you made you form then all you have to do is change the php page that the form builder points to.
At the top of your myformname.html, look for this line.
Change it to point to your php login script.
Your login script will then be able to grab the variables by $_POST or $_REQUEST.
At the top of your myformname.html, look for this line.
action="../myformname.php"
Change it to point to your php login script.
action="../myloginscript.php" target="_parent"
Your login script will then be able to grab the variables by $_POST or $_REQUEST.
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.
This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
It's easy to overlook something you're not looking for.
This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
I'm a little confused now, i'm sorry. I'm not really a developer... If i insert this code on a page:
<?php
session_start(); // start up your PHP session!
?>
<?php
$username = $_SESSION['username'];
echo 'Your username is '.$username.' Welcome to the site' ;
?>
I can grab the username on the page where is the form ... But what i want is the name of the user (username) in the form field ... not on the page
<?php
session_start(); // start up your PHP session!
?>
<?php
$username = $_SESSION['username'];
echo 'Your username is '.$username.' Welcome to the site' ;
?>
I can grab the username on the page where is the form ... But what i want is the name of the user (username) in the form field ... not on the page
Ok I got you now.
You would use this inplace of the input value for the field that you want it to appear in.
Example:
You would use this inplace of the input value for the field that you want it to appear in.
value="<?php if(isset($_SESSION["username"])) { echo $_SESSION["username"]; } ?>"
Example:
<input name="username" id="item36_regex_1" required type="text" maxlength="30"
placeholder="Enter your username" data-hint="" autocomplete="off" value="<?php if(isset($_SESSION["username"])) { echo $_SESSION["username"]; } ?>" />
placeholder="Enter your username" data-hint="" autocomplete="off" value="<?php if(isset($_SESSION["username"])) { echo $_SESSION["username"]; } ?>" />
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.
This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
It's easy to overlook something you're not looking for.
This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
Did not work ...but i think we are almost there ... here's my code:
<input name="username" id="item1_text_1" type="text" maxlength="254" placeholder=""
autocomplete="off" data-hint="" value="<?php if(isset($_SESSION["username"])) { echo $_SESSION["username"]; } ?>" />
I attach a screen picture ... that is a test page. As you can see i can grab the username (emeruu) on the page ... but the username fileld form none
<input name="username" id="item1_text_1" type="text" maxlength="254" placeholder=""
autocomplete="off" data-hint="" value="<?php if(isset($_SESSION["username"])) { echo $_SESSION["username"]; } ?>" />
I attach a screen picture ... that is a test page. As you can see i can grab the username (emeruu) on the page ... but the username fileld form none
Do you get any error's in your directory on the server?
error.log
error.log
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.
This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
It's easy to overlook something you're not looking for.
This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.