1.

Which two predefined variables are used to retrieve information from forms?(a) $GET & $SET(b) $_GET & $_SET(c) $__GET & $__SET(d) GET & SETThis question was posed to me in an interview for internship.My doubt is from HTML Forms in portion File and Session Handling in PHP of PHP

Answer»

Right answer is (b) $_GET & $_SET

Easiest EXPLANATION: The GLOBAL variables $_GET is used to collect form data after submitting an HTML form with the method=”get”. The variable $_SET is also used to retrieve INFORMATION from forms.



Discussion

No Comment Found

Related InterviewSolutions