Assume that the POST method is used Which of the following s

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\'];

Solution

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\'];)

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 var

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site