Professional Documents
Culture Documents
Chapter - 8
Chapter - 8
(COMPUTER APPLICATIONS)
Send Data
Validate Data
CLIENT SERVER
HTML FORM CONTROLS
Text Input
Buttons
6
Radio Box
Check Box
File Select
Form Tag
TEXT INPUT
It contains Text Box (Single Line Input) and Text Area
(Multiline Input) controls.
2
Text Box Text Area
RADIO BOX
It is used to select only one option.
CHECK BOX
It is used to select more than one option.
3
BUTTONS
It contains Submit (Sends the data), Reset (Clear the
data) and Cancel (Reload the Page)
FILE SELECT
It is used to select file from the Local Machine and send
to Server Machine.
FORM TAG
It contains POST & GET method to
control the entire Form Controls in the
HTML file.
<form> EXAMPLE
Text Box
Radio Box
Check Box
Text Area
File Select
Buttons
</form>
QUESTIONS
1) _________ are used to collect the data from the users and send to the server.
Ans: HTML Form Controls
2) Which HTML Form Control is used to select only one option? Ans: Radio Box
3) Which HTML Form Control is used to select multiple options? Ans: Check Box
4) Which type of button is used to send the data to the server? Ans: Submit
6) Which type of button is used to reload the web page? Ans: Cancel
7) Which tag is used to control the entire form controls in the HTML file?
Ans: Form Tag
8) Which HTML form control is used to select the file from the local machine and
send to the server machine? Ans: File Select
GET METHOD POST METHOD
1) It sends the data through URL 1) It sends the data through
address. Client’s HTTP request.
2) The input data is visible to the 2) The input data is not visible to
user. the user.
3) It sends limited data. 3) It sends unlimited data.
1) All input values are synchronized and sent to the server via ______
methods. Ans: Get & Post
2) Once the data reaches the server, Which PHP variables collects the
data and prepares the response accordingly? Ans: Get & Post
3) In which method, the input data sent to the server is stored in the
request body of the client’s HTTP request? Ans: Get
4) The input data sent to the server with POST method via URL
address is known as _____________. Ans: Query String
FORM VALIDATION
Validation is a process of checking the input data
submitted by the user from client machine.
For this validation, we have to add “required” attribute in HTML input tag.
HTML
<form action="welcome.php">
Username: <input type="text" name="name" required> OUTPUT
<input type="submit">
</form>
QUESTIONS
1) _____ is a process of checking the input data submitted by the
user from client machine. Ans: Validation
2) How many types of validations are there? Ans: 2 (two)
3) Which validation is performed in the Web Browser?
Ans: Client Side Validation
4) Which validation is performed in the Web Server?
Ans: Server Side Validation
5) Which validation is called as input data validation?
Ans: Client Side Validation
6) Which validation is called as submitted data validation?
Ans: Server Side Validation