i am having trouble setting the checked attribute value of a
radio button based on the url parameter search. if search == all
then checked == checked else checked == unchecked.
<input type="radio" name="search" value="all"
checked="<?php if ($_GET["search"] == "all") { echo"checked";}
else { echo"unchecked";} ?>" />
what am i doing wrong?