Text box, PHP Web Programming

Assignment Help:

The <INPUT> tag is used to specify where user input is expected.  It has distinct attributes, of which the TYPE attribute is used to indicate the kind of input i.e. to be provided. The most common value of this attribute of the <INPUT> tag is TEXT. As illustrated in Figure every INPUT require a NAME. While the user types in his address (for instance 1234 ABC), this will become the input's value & be paired with NAME thus the end result after running it through the Mailto Formatter will be ADDRESS=1234 ABC.

We can, if we wish, type in a VALUE.

<INPUT TYPE=TEXT NAME="ADDRESS" VALUE="44 XYZ">

This will pair the value 44 XYZ with the name ADDRESS automatically, unless the user alters it. Take care to employ quotes as specified in the instance.

We can indicate the size of the text input box.

<INPUT TYPE=TEXT NAME="ADDRESS" VALUE="44 XYZ" SIZE=10>

The default value is twenty. You already know that the default value is the value which the browser supposes if you have not told it otherwise.

Go ahead & remove VALUE="44 XYZ".

If we wish, we can indicate how several characters a user can input.

Experiment with this and attempt to input more than ten characters! The MAXLENGTH attribute is used to limit the number of characters to be entered in the textbox.

<INPUT TYPE=TEXT NAME="ADDRESS" SIZE=20 MAXLENGTH=10>

Alike to the TYPE=TEXT is the TYPE=PASSWORD. It is exactly the identical, except that for security it displays *** rather than the actual input. The text entered like a password would not be echoed on the page.  Thus you can employ this whenever you wish to accept a password or some other sensitive information from the user.

<INPUT TYPE=PASSWORD>

Remember that each <INPUT> should have a NAME which gives the name of the field.

<INPUT TYPE=PASSWORD NAME="USER PASSWORD">

The VALUE, SIZE and MAXLENGTH attribute work here also just as they do along TEXT


Related Discussions:- Text box

We want a front end developer, We want a Front end developer We are in s...

We want a Front end developer We are in search of a Web Developer. Wordpress, html5, responsive, css3, php Desired Skills are CSS, HTML, JavaScript, PHP, WordPress

Web development for art website, Web development for company We need to ...

Web development for company We need to build a website for a start-up company doing event planning relating to fashion and arts. In this website we would like to have the follow

Create a web page to display moving message, 1. Develop a Web page via...

1. Develop a Web page via href attribute of anchor tag and the attribute: vlink, alink, etc. 2. Develop a Web page, in which when the user clicks on the link it will go to

How php statement is different from php script, How PHP statement is differ...

How PHP statement is different from PHP script? Difference between PHP script and PHP statement is that statements are set of instructions which tell PHP to perform an action.

Objects, A JavaScript object is an example of data type. Object is given a ...

A JavaScript object is an example of data type. Object is given a unique name & the set of properties of the corresponding object might be accessed by means of the dot syntax. As a

Mailing, how to mail to google from php

how to mail to google from php

Explain the purpose of a wsdl document, Question: (a) Give three typic...

Question: (a) Give three typical uses of Web Services. (b) Explain any five attributes used by Regular Expression Pattern in a WSDL document. (c) Explain the purpose o

Review business needs and completed designs, SEO skills are of paramount im...

SEO skills are of paramount important and expertise in HTML, CSS, Wordpress are critical. Our designs will be provided, we simply require a team to help code the site and employ th

Develop an ecommerce website in the optical industry, Develop an ecommerce ...

Develop an ecommerce website in the optical industry that will allow customers to shop for frames upload/order prescriptions and have a shopping cart and pay. Need to look similar

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd