1D0-61B · Question #50
A user is submitting data from a form on your Web page to a database using a CCI script. Which attribute of the form field elements organizes the user's information into name=value pairs?
The correct answer is A. Name. Option A (Name) is correct because the name attribute on form field elements is what identifies each field when the form is submitted - the browser packages each field's data as fieldname=fieldvalue pairs (e.g., username=john). Without a name attribute, a field's data is not…
Question
A user is submitting data from a form on your Web page to a database using a CCI script. Which attribute of the form field elements organizes the user's information into name=value pairs?
Options
- AName
- BForm
- CValue
- DMethod
How the community answered
(53 responses)- A92% (49)
- B4% (2)
- C2% (1)
- D2% (1)
Explanation
Option A (Name) is correct because the name attribute on form field elements is what identifies each field when the form is submitted - the browser packages each field's data as fieldname=fieldvalue pairs (e.g., username=john). Without a name attribute, a field's data is not included in the submission at all.
Why the distractors are wrong:
- B. Form -
formis an attribute that associates a field with a specific<form>element by ID; it does not create name=value pairs. - C. Value -
valueholds the data half of the pair (the right side of=), but it is thenameattribute that supplies the label that makes the pairing meaningful. - D. Method -
methodis an attribute on the<form>element itself (e.g.,GETorPOST) that controls how data is sent, not what identifies each field.
Memory tip: Think of a name tag at a conference - the name attribute is the label on the tag that tells the server who is submitting what. No name tag, no identification.
Topics
Community Discussion
No community discussion yet for this question.