Form and input tag, PHP Web Programming

Assignment Help:

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 for learning this tag. Begin your browser. Use it to open form1.html and run Notepad & the browser side by side. This way you can build your pages and almost instantaneously view the results of your work. Bear in mind to hit the refresh button on your browser.

Next we should tell the browser where to send the data we collect and how to send it. There are two methods via you can do this.

1) You can send the data to a cgi script or employ some other mechanism for processing, or

2) You can have the data emailed to you. The first choice is outside the scope of discussion of this unit.

The second, or mailto, form must have the following attributes in the <FORM> tag.

Note: Microsoft's Internet Explorer 3.0 does not support mailto forms. While you attempt to submit the information, the new mail message window pops up. This does support forms sent to a CGI script.

<HTML>

<HEAD>

<TITLE> Welcome </TITLE>

</HEAD>

<BODY>

<FORM METHOD=POST ACTION="mailto:xy@expertsmind" ENCTYPE="application/y-www-form-urlencoded">

</FORM>

</BODY>

</HTML>

The line containing the mailto keyword is extremely important. The only thing you ought to do is indicate your email address after mailto: The rest have to be written exactly as illustrated. The words METHOD, FORM, POST and ACTION do not need to be capitalized but there should be a space among every two attributes, between METHOD & FORM, between ACTION and POST, and among the e- mail address and ENCTYPE.

Some mail programs are able of converting the data without needing a separate program. You may wish to try this method first. Just delete the instruction

ENCTYPE="application/y-www-form-urlencoded" and in its place use

ENCTYPE="text/plain".

The following instance illustrates a general form that includes some of the commonly used controls.

<HTML>

<HEAD>

<TITLE> Welcome </TITLE>

</HEAD>

<BODY>

<FORM METHOD=POST>

Text box having name, value and size attributes

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

<BR>Text box having password and maxlength

<INPUT TYPE=PASSWORD MAXLENGTH=10>

<BR>Radio button having default checked<BR> Who is your best friend?<BR>

<INPUT TYPE=RADIO NAME="BEST FRIEND" VALUE="Ajay" CHECKED> Ajay <BR>

<INPUT TYPE=RADIO NAME="BEST FRIEND" VALUE="Rohan"> Rohan

<BR>

<INPUT TYPE=RADIO NAME="BEST FRIEND" VALUE="Tarun"> Tarun<P>

<BR>Checkbox<BR>

<INPUT TYPE=CHECKBOX NAME="AJAY" VALUE="YES"> Ajay <BR>

<INPUT TYPE=CHECKBOX NAME="Rohan" VALUE="YES"> Rohan <BR>

<INPUT TYPE=CHECKBOX NAME="BU" VALUE="YES"> Bunty<P>

<BR>Drop down list<BR>

<SELECT NAME="BEST FRIEND" SIZE=4>

<OPTION VALUE="Ajay">Ajay

<OPTION VALUE="Rohan">Rohan

<OPTION VALUE="Tarun">Tarun

<OPTION VALUE="Gagan">Gagan

<OPTION VALUE="Harish">Harish

<OPTION VALUE="Manjit">Manjit

</SELECT>

</FORM>

</HTML>

1346_FORM and INPUT Tag.png

Figure: A Web Page with a Form


Related Discussions:- Form and input tag

I want to develop a discussion board and classifieds, I want to develop a D...

I want to develop a Discussion Board/Classifieds I'm seeking to create a discussion board/classifieds for the community I live in I do like to know what platform you'd use an

We need a google maps drawing polygon, We need a Google Maps Drawing Polygo...

We need a Google Maps Drawing Polygon as well as Output Zipcodes expert Create a Google Map permitting the user to draw a rectangle and on completion of the drawing, output the

We need a new website build, We need a New website build, CMS integration, ...

We need a New website build, CMS integration, Logo design and SEO Because of recently relocation abroad I am keen to revamp my previous business in a more exciting online way to

Adding css style to html page, Step 1: Click on Window Menu Step 2: choo...

Step 1: Click on Window Menu Step 2: choose CSS Styles Or Click onto CSS Styles in the "Launcher" Step 3: Click on New to generate a new CSS style Step 4: select the Ty

Need capable to design any required worpress plugin, Wordpress Web designer...

Wordpress Web designer/Developer with web application development skills Be capable to design any required Worpress plugin, component, modules. We are begin a new USMLE/COMLE

We are in need of classics24, We are in need of Classics24 We would like...

We are in need of Classics24 We would like our existing project to be entirely rewritten from scratch We have numerous websites running on 1 database in the classic car adver

Copy and modify website for writing service, Project Description: We wou...

Project Description: We would like to prepare a writing service website. We need to make it very simple > someone come to the site to purchase content for a project > client pic

Php expert programmer needed for web development, PHP expert programmer nee...

PHP expert programmer needed for web development I in search of a PHP expert Programmer. Smart and problem solving oriented Expert in improving performance for large sites. D

You have to sculp a web site, You have to Sculp A web site Project Descr...

You have to Sculp A web site Project Description: I have a web site that has to be sculped and have a protection with watermart, we require to sculp the whole web site and re

Form target attribute, Corresponds to the FORM TARGET attribute. • Tex...

Corresponds to the FORM TARGET attribute. • Text - It is an object representing a text field. • Text area - It is an object representing a text area field. Some of the F

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