I am just learning php and I need to set the value of a session to the html textbox. I wrote the php code inside value attribute of the input but it displaying the entire code instead of the variable stored in the session. Please guide me.
<input type="text" name="usernametxt" value="<?php echo $_SESSION["user"]; ?> "/>