Unit 3 Flashcards
What does the<input></input> tag do?
This form element is used to control the type of input element that will be produced on your form.
List the common input types in a HTML form
- text (produces a text input field)
- password (produces a password input field)
- button (produces a simple clickable button)
- submit (produces a submit button)
- radio (produces a radio button)
- checkbox (produces a checkbox)
- date (produces a date input field)
- file (produces a file-select field)
What is the <textarea> tag?</textarea>
IT is used to create a multi-line text input field
What does the GET method do?
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.
What does the POST method do?
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.
What two attributes specify how how the form data is processed when submitted?
- Method Attribute
- Action Attribute
Outline the action attribute used in form processing?
Specifies the PHP script file location for processing when it is submitted.
Outline the method attribute used in form processing?
Specifies what type of method the form will use to send the data, either theGETorPOST method
To obtain form data we use superglobal variables:
- $_GET - creates an associative array with keys to access all the sent form data
- $_POST - creates an associative array with an access key
- $_REQUEST - dynamically retrieves form data sent from both Form GET and POST methods