Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

test2 True/False True is A and False is B omit the leading dollar sign from the

ID: 3737861 • Letter: T

Question

test2 True/False True is A and False is B omit the leading dollar sign from the When using the variable name as an index for the SGLOBALS array, you The method attribute defines how The value of the method attribute will be either post or get. 2. the form data is subnsitted to the server ?? 3. URI specified in the 4 When the form data is submitted using the get method, the form data is ap form's method attribute. 5. When a s submit button is pressed, each field on the form is sent to the Web server as a name/value pair 6. When the post method is used to submit a form, the name portion of the name/value pair of the name/value pai r becomes the value assigned to the array element. 7. When using the get method to submit form data, the form data is separated from the URL by a colon.G) PHP includes a feature called magie quotes, which automatically adds n backslash C) to any double quote, or NULL character in submitted form data. 8. e quote, 9. By default, magic quotes_gpc is the only magic quote directive enabled in the php.ini configuration 10. The alternate method to escape strings is the stripslashes () function. 11. The round () decimal point, if any function can be used to ensure that numbers have the appropriate number of digits aft 2. A sticky form is redisplayed with the values that the user entered the last time the form was submit In PHP, an e-mail message is sent using the email) function. The subject argument of the mail function must be plain text without XHTML. tags or char

Explanation / Answer

1. when using the variable name as an index for the $GLOBALS array, you omit the leader dollar sign from the name - True, the leading dollar sign can be omitted from the variable name when using as an index for the $GLOBALS array.

2. the method attribute defines how the form data is submitted to the server - True because the post or get will be the value of the method.

3. the value of the method attribute will be either post or get - True, it uses either post method or get method for the defining the value of the method attribute while submitting the data to the server.

4.when the form data is submitted using the get method, the form data is appended to the URL specified in the form's method attribute - False, because the form data is appeneded to the URL which has been specified will be done with the post method

5. when a form's submit button is pressed, each field on the form is sent to the web server as a name/value pair - True, the name/value pair will be sent from the form to the webserver when the form's submit button is pressed.

6. when the post method is used to submit a form, the name portion of the name/value pair becomes the value assigned to the array element - False, because it should be done with the get method.

7. when using the get method to submit form data, the form data is separated from the URL by a colon - False, because the URL separated by the question mark.