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

I need a help in wordpress refer a friend plugin, I need a help in Wordpres...

I need a help in Wordpress refer a friend plugin I am in search of a WordPress Expert for Refer A Friend Plugin. When a visitor subscribes he is redirected to a page that I c

Need help in creating forms in atlassian confluence, Need help in Creating ...

Need help in Creating forms in Atlassian Confluence We have installed Confluence and now to create some checklists and forms that our team can complete when working with clients

We need help in google maps page modification required, We need help in Goo...

We need help in Google Maps Page Modification Required I want a modification to a Google Maps Page. When the page returns the location address I need the user to be able to c

Woocommerce and wordpress development on existing website, Woocommerce and ...

Woocommerce and wordpress extra development desirable on existing website I have a present website which I need some extra development on. It is a pretty meek custom WordPres

We need help for car transports portal, We need help for car transports por...

We need help for car transports portal I am in search of a web programmer who can realize my ideas on web. I need to create a portal for transportation in Europe especially f

Design a web page to accept an order for fast food outlet, Design a Web pag...

Design a Web page with suitable functionality to accept an order for fast food outlet. It must check if the user has entered a valid name & email-id. It must also calculate the val

Performance issues on amazon ec2, I presently host my websites on Amazon EC...

I presently host my websites on Amazon EC2. I seem to be having several performance issues such as longer than expected loading times. My sites build with Wordpress. I use Cl

Requirement for develop a web application, Project Goals To develop a r...

Project Goals To develop a reasonably large and enterprise-level Web application using PHP/ASP.NET/JSP, MySQL, and other Web site technologies that demonstrates the objectives

Create a connection string to connect to database, Question: (a) What ...

Question: (a) What will be the output of the following extract codes? Describe fully how the program operates. $states_of_the_USA = array (1 => "Alabama", "Alaska", "Arizo

We need a web developer, We need a web developer We have a very modest t...

We need a web developer We have a very modest three page site on go daddy and just want someone to design it through the go daddy site. We as well would like a logo designed.

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