How do I get a radio button value to stay selected while a user is performing searches, displays the list and then changes the pages because only 25 are displayed at a time?
There is a search box. I have related drop downs and they stay down using option lists and javascript functions.
This is the input
echo "<th align='right'>Error Flag\n";
echo "<td><input type='radio' name='search_error_flag' class='rad1' value ='1' >Yes\n";
echo "<td><input type='radio' name ='search_error_flag' class='rad1' value='0' CHECKED>No\n";
echo "<tr>\n";
There is either a GET or a POST for the value.
$search_error_flag=$_POST['search_error_flag']!='' ? $_POST['search_error_flag'] : $_GET['error_flag'];
The value is available in the GET string anchor link for the paging but it is not saved in the search box.
thanks,