Two default text display modes are input and two default text display modes are input.

Source: Internet
Author: User

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'];
}
?> ">

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.