Final fixes for aur_search_form.php - further reduces the number of validation errors for an empty search result from 44 to 28. --- web/template/pkg_search_form.php | 20 ++++++++++---------- 1 files changed, 10 insertions(+), 10 deletions(-) diff --git a/web/template/pkg_search_form.php b/web/template/pkg_search_form.php index 0b0397a..ce05b4f 100644 --- a/web/template/pkg_search_form.php +++ b/web/template/pkg_search_form.php @@ -24,7 +24,7 @@ <?php while (list($id, $loc) = each($locs)) { if (intval($_REQUEST['L']) == $id) { - print ' <option value="' . $id . '" selected>' . $loc . "</option>\n"; + print ' <option value="' . $id . '" selected="selected">' . $loc . "</option>\n"; } else { print ' <option value="' . $id . '">' . $loc . "</option>\n"; } @@ -41,7 +41,7 @@ <?php while (list($id, $cat) = each($cats)) { if (intval($_REQUEST['C']) == $id) { - print ' <option value="' . $id . '" selected>' . $cat . "</option>\n"; + print ' <option value="' . $id . '" selected="selected">' . $cat . "</option>\n"; } else { print ' <option value="' . $id . '">' . $cat . "</option>\n"; } @@ -53,16 +53,16 @@ <!-- Search Keywords --> <td class="right_align"> <label><?php echo __('Keywords')?></label> - <input type="text" name="K" size="20" value="<?php echo stripslashes(trim(htmlspecialchars($_REQUEST['K'])))?>" maxlength="35"> + <input type="text" name="K" size="20" value="<?php echo stripslashes(trim(htmlspecialchars($_REQUEST['K'])))?>" maxlength="35" /> </td> <!-- Search by --> <td class="right_align"> <label><?php echo __("Search by")?></label> <select name="SeB"> - <option value="nd" <?php if ($_REQUEST['SeB'] == "nd") print 'selected'?>><?php echo __('Name')?></option> - <option value="m" <?php if ($_REQUEST['SeB'] == "m") print 'selected'?>><?php echo __('Maintainer')?></option> - <option value="s" <?php if ($_REQUEST['SeB'] == "s") print 'selected'?>><?php echo __('Submitter')?></option> + <option value="nd" <?php if ($_REQUEST['SeB'] == "nd") print 'selected="selected"'?>><?php echo __('Name')?></option> + <option value="m" <?php if ($_REQUEST['SeB'] == "m") print 'selected="selected"'?>><?php echo __('Maintainer')?></option> + <option value="s" <?php if ($_REQUEST['SeB'] == "s") print 'selected="selected"'?>><?php echo __('Submitter')?></option> </select> </td> @@ -70,10 +70,10 @@ <td class="right_align"> <label><?php echo __('Per page')?></label> <select name="PP"> - <option value="25" <?php if ($PP == 25) print 'selected'?>>25</option> - <option value="50" <?php if ($PP == 50) print 'selected'?>>50</option> - <option value="75" <?php if ($PP == 75) print 'selected'?>>75</option> - <option value="100" <?php if ($PP == 100) print 'selected'?>>100</option> + <option value="25" <?php if ($PP == 25) print 'selected="selected"'?>>25</option> + <option value="50" <?php if ($PP == 50) print 'selected="selected"'?>>50</option> + <option value="75" <?php if ($PP == 75) print 'selected="selected"'?>>75</option> + <option value="100" <?php if ($PP == 100) print 'selected="selected"'?>>100</option> </select> </td> -- 1.4.4.4 -- Michael Klier www: http://www.chimeric.de jabber: chi@jabber.shipdown.de key: http://downloads.chimeric.de/chi.asc key-id: 0x8308F551