form builder and session variable
Wonder to know if someone can explain in an easy way how can i grab a session variable (like username) and insert it on a field of a form that is build with formbuilder.
If you have your server setup to parse php inside an html page you can do it this way.
<?php
session_start();
$username = $_SESSION['username'];
?>
<input name="username" id="item4_text_1" type="text" maxlength="254" placeholder=""
autocomplete="off" data-hint="" value="<?php echo $username ; ?> "/>
session_start();
$username = $_SESSION['username'];
?>
<input name="username" id="item4_text_1" type="text" maxlength="254" placeholder=""
autocomplete="off" data-hint="" value="<?php echo $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
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.