PHP > Beginner

What will be the value in label "selectedColor" after user selects "red" from drop down and hit submit?

<html>
<head>
<title>PHP</title>
</head>
<body>
<?php
 $color = "";
 if(isset($_GET["color"]))
  $color = $_GET["color"]." selected";
?>
<form method="post">
  <label id="selectedColor"><?php echo $color; ?></label>
 <select name="color">
  <option value="red">red</option>
  <option value="green">green</option>
  <option value="blue">blue</option>
 </select>
 <input type="submit" value="submit" />
</form>
</body>
</html>
Answers :
Time Left
Question Number : /20
Please do not press back or refresh button during this test.

Login

Register

Next Question