Whenever i select the radio button B and i send the form.. it jumps back to the default Radio Button A..
Is there anyway i can keep the radio button remained checked at that value after it has been sent..
$queryKeyword = "SELECT * FROM report WHERE 1";
if($radio == "exactPhrase"){
$queryKeyword .= " and AircraftTailNo LIKE '%$trimmedKeyword%' OR DefectInfo LIKE '%$trimmedKeyword%' OR Rectifications LIKE '%$trimmedKeyword%' OR Comments LIKE '%$trimmedKeyword%' OR RelatedDoc LIKE '%$trimmedKeyword%'";
}
if($radio == "anyPhrase"){
$queryKeyword .= " and AircraftTailNo REGEXP '[[:<:]]{$word}[[:>:]]' OR DefectInfo REGEXP '[[:<:]]{$word}[[:>:]]' OR Rectifications REGEXP '[[:<:]]{$word}[[:>:]]' OR Comments REGEXP '[[:<:]]{$word}[[:>:]]' OR RelatedDoc REGEXP '[[:<:]]{$word}[[:>:]]'";
}
<input name="Keyword" type="text" id="Keyword2" value="<?php echo $Keyword; ?>" size="20"/>
<br>
<input type='radio' value='anyPhrase' checked name='radiobutton'>
Any Phrase <br>
<input type='radio' value='exactPhrase' name='radiobutton'>
Exact Phrase</td>