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

Assume that the POST method is used. Which of the following statements gets the

ID: 3924573 • Letter: A

Question

Assume that the POST method is used. Which of the following statements gets the value of the radio button that’s on in the delivery group and stores it in a variable named $card_type?

<input type="radio" name="delivery" value="USPS" />USPS

<input type="radio" name="delivery" value="FedEx" />Federal Express

<input type="radio" name="delivery" value="UPS" />UPS

a.

$card_type = isset($_POST['delivery'];)

b.

$card_type = isset($_POST['card_type'];

c.

$card_type = $_POST['delivery'];

d.

$card_type = $_POST['card_type'];

a.

$card_type = isset($_POST['delivery'];)

b.

$card_type = isset($_POST['card_type'];

c.

$card_type = $_POST['delivery'];

d.

$card_type = $_POST['card_type'];

Explanation / Answer

Answer:

Then, we also need to show which radio button that was checked. For this, we must manipulate the checked attribute

a. $card_type = isset($_POST['delivery'];)