Two default text display modes are input and two default text display modes are input.
First Note:
The placeholder attribute specifies the prompt to help the user fill in the input field. The value is not submitted, and the prompt is displayed when the input field is empty and disappears when the field gets the focus.
For example
<Input type = "text" name = "tname" placeholder = "Enter the user name here">
<Input type = "text" name = "tname" placeholder = "<? Php
If (! Empty ($ _ SESSION ['tname']) {
Echo $ _ SESSION ['tname'];
}
?> ">
The value Attribute specifies the value of the input element. The value is submitted.
For example
<Input type = "text" name = "tname" value = "admin" placeholder = "Enter the user name here">
<Input type = "text" name = "tname" value = "admin" placeholder = "<? Php
If (! Empty ($ _ SESSION ['tname']) {
Echo $ _ SESSION ['tname'];
}
?> ">