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 need a help to create wp custom application development, I need a help to...

I need a help to create WP custom application development Looking to create a few approval processes, custom post types, user registration types, reports and analytics in a cust

Need help in magento dynamic png image generation, Magento Dynamic png imag...

Magento Dynamic png image generation for a vinyl lettering website I need to create dynamic png image generation for a vinyl lettering website. Requirements- 1) Dynamicall

Need help to add a form on a joomla website, Need help to Add a form on a J...

Need help to Add a form on a Joomla website We need to add a form on the home page of an existing Joomla website, just like on file in attachment, and then the info's will be sa

Define a style rule, Define a style rule that defines a font-family, font t...

Define a style rule that defines a font-family, font text color, font-size, and background color for the textarea. The style rules can be placed in a style element in the head of

Need help for a proposal for electronic medical record, Proposal for electr...

Proposal for electronic medical record I'm development an online electronic medical record custody application for a third country as well as need a proposal for funding. I want

Need help to fix hacked joomla site, Fix Hacked Joomla Site My site was ...

Fix Hacked Joomla Site My site was hacked by Ukrainians. I deleted the users introduced by the hackers in the backend database however now I can't log onto the administrator con

Formatting of text, Text formatting, in other terms presenting the text on ...

Text formatting, in other terms presenting the text on an HTML page in a wanted manner, is significant part of developing a web page. Let us understand how we can lay out of text c

Need help in html5 mobile app with php & mysql admin site, HTML5 mobile app...

HTML5 mobile app with php & mysql admin site We would like a HTML5 app which users are capable to record locations and upload photo's, other users can rate it, geolocation, Goog

Need help in responsive architectural portfolio, Responsive Architectural P...

Responsive Architectural Portfolio, HTML5 and jQuery We are seeking a new website to showcase our architectural projects. I have a good hint of exactly how I want the website

Web browser, A Web browser is software program which allows you to easily d...

A Web browser is software program which allows you to easily display Web pages & navigate the Web. The first graphical browser namely Mosaic, was developed in Illinois at the Natio

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