Hello, I want to display session value in text box ,i tried some code but i didn't get output.
Here is my code....
- <?php
-
- session_start();
- $pname=$_SESSION["pname"];
- $rs=$_SESSION["rs"];
-
- if($_SESSION["pname"]==TRUE){
-
- } else
- {
-
- }
- ?>
and the HTML code
- <input type="text" class="form-control" name="name" placeholder="" required="" value="<?php echo $pname?>">
and i got this below output...
So help me how can i solve this ?