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

Personal portfolio site, This site must include at least 5 pages - your Hom...

This site must include at least 5 pages - your Home page, an About Me page, a Projects page, a Services page, and a Contact Me page. 1.  Your Home page should include the followi

Form and input tag, A good way to learn regarding forms is to employ your n...

A good way to learn regarding forms is to employ your notepad editor & create a new HTML document. In some folder, save it as form1.htm. You might wish to create a separate folder

Need a custom type of input control which is a tree view, Jaspersoft: Custo...

Jaspersoft: Custom Input Control: Tree View For a fresh project we urgently need a custom type of Input Control which is a tree view. we have the subsequent table structure (

Draw layout cells, In Layout view you can draw layout cells & layout tables...

In Layout view you can draw layout cells & layout tables to describe the design areas of a document. This task is easier to achieve if you prepare a sample of the page you're creat

Complete php and html coding required for new jobs site, Complete php/ html...

Complete php/ html coding required for new jobs site I have subscribed the domain for a new UK jobs site. I really bought a crappy theme for it (can't name here; libel), anyw

I need a wordpress expert, I Need a wordpress expert I am observing to e...

I Need a wordpress expert I am observing to establish a long term relationship with a WordPress expert. This is the first project which will have to be a basic theme website fro

Group cells in a layout table, Now you will insert the navigation button ce...

Now you will insert the navigation button cells you just created in a single table. Grouping the cells into a table makes able you to control the cell spacing and to simply move th

Returning a value, Another function of a function is to return a value. Ima...

Another function of a function is to return a value. Imagine we have the following function: IGNOU

We are in search of a developer with customizing shopify, Shopify Expert ...

Shopify Expert We are in search of a developer with experience customizing Shopify. You should have experience and provide samples doing this. You must as well have experience

Business starter website needs to grow up a little need help, My business' ...

My business' starter website needs to grow up a little The site was completely homemade when I started my business last year. While it's visually striking, the way it was constr

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