Wednesday, March 19, 2014

When processing the form, what is the difference between a hidden form element and a nonhidden one, such as a text box?

A. The hidden form element does not have a name.

B. There is no difference.

C. The hidden form element does not have a value.

D. The hidden form element is excluded from the request.

Answer

Answer B is correct.When processing a form, each form element is simply a

name/value pair within one of the superglobal arrays. Answers A and C are incorrect

because hidden form elements can (and should) have both a name and a

value. Answer D is incorrect because hidden form elements are only excluded

from the user’s view, not from the HTTP request.

No comments:

Post a Comment