All about forms [autosaved]

28
SELECT TEXT OPTION CHECKBOX SUBMIT INPUT TYPE IMAGE FORMS RESET

description

this is from my teacher so you download it but dont copy thanks :D and make it sure you'd be using this as your guide but not just an ass. thank you very much.

Transcript of All about forms [autosaved]

Page 1: All about forms [autosaved]

SELECT TEXT OPTION CHECKBOX SUBMIT

INPUT TYPE IMAGE FORMS RESET

Page 2: All about forms [autosaved]

B M I T F T E X T F C

U F C N M I O C S F P

S M F Q O B L E L T R

G I O O K I L E O U E

T Y Z C R E T M V P C

E J E F C M E P E N I

X H U T R E S F O I O

C D R O W S S A C P U

A I S H F E G A M I S

Page 3: All about forms [autosaved]

Forms

Ms. Precious Simon. Dela Cruz

Page 4: All about forms [autosaved]

Forms

Allows the user to enter requested information and submit for processing and can provide a set of controls for every need.

checkboxes, radio buttons, pull-down menus, popup windows.

<Form>.. </Form>

Page 5: All about forms [autosaved]

Form PropertiesText BoxesPassword BoxesCheck Boxes(Radio) ButtonsSubmitReset FileImage

Page 6: All about forms [autosaved]

<INPUT> .. </INPUT> Tag

Form Elements

TYPE type of input entry field

NAMEThe data associated with the variable name to be

passed to the CGI application.

CHECKED button/box checked by default.

SIZE Number of characters in text field.

MAXLENGTH Maximum number of characters accepted

Attributes

Page 7: All about forms [autosaved]

Input Form Elements1) <INPUT TYPE=“TEXT”>

2) <INPUT TYPE=“PASSWORD”>

3) <INPUT TYPE=“CHECKBOX”>

4) <INPUT TYPE=“RADIO ”>

5) <INPUT TYPE=“IMAGE” SRC=“URL”>

6) <INPUT TYPE=“SUBMIT”>

7) <INPUT TYPE=“RESET”>

8) <INPUT TYPE=“FILE”>

Page 8: All about forms [autosaved]

<INPUT TYPE=“TEXT”>• It is used to create Text-entry fields.

Attributes

SIZE Determines the size of the textbox in characters.

MAXSIZEDetermines the maximum number of characters that

the field will accept

NAMEUse a name that implies

the type of information you want to collect

VALUE Will display its contents as default value

Page 9: All about forms [autosaved]
Page 10: All about forms [autosaved]

<INPUT TYPE=“PASSWORD”>• It is use for password inputs

Attributes

SIZE Determines the size of the textbox in characters

MAXSIZEDetermines the maximum

size of the password in characters.

NAMEUse a name that implies

the type of information you want to collect

VALUE Is usually blank

Page 11: All about forms [autosaved]
Page 12: All about forms [autosaved]

<INPUT TYPE=“CHECKBOX”>

This form element creates a checkbox.

Attributes

CHECKED Is blank or CHECKED as the initial status

NAMEUse a name that implies

the type of information you want to collect

VALUE Is usually set to a value

Page 13: All about forms [autosaved]
Page 14: All about forms [autosaved]

<INPUT TYPE=“RADIO ”>

Radio buttons are clickable circles for the user to select ONLY ONE option.

Attributes

CHECKED Is blank or CHECKED as the initial status

NAMEUse a name that implies

the type of information you want to collect

VALUE Is usually set to a value

Page 15: All about forms [autosaved]
Page 16: All about forms [autosaved]

<SELECT> TAG it is used to create a pull=down

menu of selections.

Attributes

NAMEIs the name of the variable

to be sent to the CGI application.

SIZE This sets the number of visible choices.

MULTIPLE

The presence of this attribute signifies that the user can make multiple selections.

Default only one selection is allowed.

Page 17: All about forms [autosaved]

<OPTION> TAGAttributes

SELECTED

When this attribute is present, the option is

selected when the document is initially

loaded. It is option be selected.

VALUESpecifies the value the variable named in the

select element.

Page 18: All about forms [autosaved]
Page 19: All about forms [autosaved]

<TEXTAREA></TEXTAREA>Attributes

NAMEUse a name that implies

the type of information you want to collect

ROWS The number of rows to the textbox

COLS The number of columns to the textbox

WRAP

Default to OFF. You should set wrap to “VIRTUAL” or

“PHYSICAL” so that the text wraps in the brow

ser display as the user types.

Page 20: All about forms [autosaved]
Page 21: All about forms [autosaved]

<INPUT TYPE=“SUBMIT”>This is the value that causes the browser to send the names and values of ACTION attribute to the FORM element.

Attributes

SIZE Is the size of the text box in characters

NAME Value used by the CGI script for processing

VALUEDetermines the text label

on the button, usually Submit Query.

Page 22: All about forms [autosaved]
Page 23: All about forms [autosaved]

<INPUT TYPE=“IMAGE” SRC=“URL”>

Creates Image Submit Button which allows the user to substitute an image for the standard submit button.

Attributes

NAME Is the name of the button to be used in scripting

SRC URL of the image file.

Page 24: All about forms [autosaved]
Page 25: All about forms [autosaved]

<INPUT TYPE=“RESET”>

It allows the surfer to clear all the input in the form.

VALUEDetermines the text label

on the button, usually Reset.

Attributes

Page 26: All about forms [autosaved]
Page 27: All about forms [autosaved]

<INPUT TYPE=“FILE”>It allows the surfers to upload files to a web server.

Attributes

NAMEIs the name of the variable

to be sent to the CGI application

SIZE Is the size of the text box in characters

MAXSIZEIs the maximum size of the

input in the textbox in characters.

ENCTYPEIs a list of (MIME) types

that the field can be used to upload

Page 28: All about forms [autosaved]