MCQ IN COMPUTER SCIENCE & ENGINEERING

COMPUTER SCIENCE AND ENGINEERING

WEB TECHNOLOGY

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Which method is used when form is submitted and next file URL look like https://www.gla.ac.in/next.php?Sname=Rakesh&Cname=BCA
A
Post
B
Get
C
Reset
D
Submit
Explanation: 

Detailed explanation-1: -The method attribute specifies how to send form-data (the form-data is sent to the page specified in the action attribute). The form-data can be sent as URL variables (with method="get” ) or as HTTP post transaction (with method="post” ). Notes on GET: Appends form-data into the URL in name/value pairs.

Detailed explanation-2: -The POST method If a form is sent using this method, the data is appended to the body of the HTTP request.

Detailed explanation-3: -After submission, the form data send to the server using the GET method and the POST method. Once we will use the GET method to send the form data to the server then we will use the POST method to send the form data to the server.

Detailed explanation-4: -PHP $ GET is a PHP super global variable which is used to collect form data after submitting an HTML form with method="get". $ GET can also collect data sent in the URL.

There is 1 question to complete.