Unit 3 Flashcards

1
Q

What does the<input></input> tag do?

A

This form element is used to control the type of input element that will be produced on your form.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

List the common input types in a HTML form

A
  1. text (produces a text input field)
  2. password (produces a password input field)
  3. button (produces a simple clickable button)
  4. submit (produces a submit button)
  5. radio (produces a radio button)
  6. checkbox (produces a checkbox)
  7. date (produces a date input field)
  8. file (produces a file-select field)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is the <textarea> tag?</textarea>

A

IT is used to create a multi-line text input field

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What does the GET method do?

A

The default method used to submit an HTML form.
The data is sent as URL parameters that are usually strings of name and value pairs separated by an ampersands (&); thus, GET method is not suitable for passing sensitive data.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What does the POST method do?

A

It is use to submit an HTML form.
The data is sent to the server as a package in a separate communication with the processing script. Data is not visible in URL.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What two attributes specify how how the form data is processed when submitted?

A
  1. Method Attribute
  2. Action Attribute
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Outline the action attribute used in form processing?

A

Specifies the PHP script file location for processing when it is submitted.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Outline the method attribute used in form processing?

A

Specifies what type of method the form will use to send the data, either theGETorPOST method

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

To obtain form data we use superglobal variables:

A
  1. $_GET - creates an associative array with keys to access all the sent form data
  2. $_POST - creates an associative array with an access key
  3. $_REQUEST - dynamically retrieves form data sent from both Form GET and POST methods
How well did you know this?
1
Not at all
2
3
4
5
Perfectly