ryanf Posted April 21, 2004 Posted April 21, 2004 Ok, after two days of trying to get this search function to work, I got it working fine on IE. Then for a lark I opened up Netscape 7.1 and tried the search function and it keeps telling me "At least one of the fields in the search form must be entered." Whats up with that? Here is my code: Search: <?php echo tep_draw_form('advanced_search', tep_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false), 'get') . tep_draw_input_field('keywords','','size="10" maxlength="30" style="width: ' . (BOX_WIDTH-30) . 'px"') . ' ' . tep_draw_pull_down_menu('categories_id', tep_get_categories(array(array('id' => '', 'text' => TEXT_ALL_CATEGORIES))))?> </td> <td valign="middle" width="30" align="center"> <a href="http://www.abdulky.com/catalog/advanced_search_result.php"> <input type="image" src="images/index/go_off.gif" border="0" alt="Quick Find" title=" Quick Find "></a> </form> and here is what it looks like in the html source code output: Search: <form name="advanced_search" action="http://www.abdulky.com/catalog/advanced_search_result.php" method="get"><input type="text" name="keywords" size="10" maxlength="30" style="width: 95px"> <select name="categories_id"> <option value="" SELECTED>All Categories</option> <option value="22">Bracelets</option> . . . <option value="28">Character Collection</option> <option value="14"> Thriller</option></select></td> <td valign="middle" width="30" align="center"> <a href="http://www.abdulky.com/catalog/advanced_search_result.php"> <input type="image" src="images/index/go_off.gif" border="0" alt="Quick Find" title=" Quick Find "></a> </form> Thanks for the help. And does anyone know anymore issues that different browsers have? If I was crafty, this would be a funny signature.
ryanf Posted April 22, 2004 Author Posted April 22, 2004 No one knows why this is happening? Why is the code so different that it won't work right outside of advanced_search_results.php? If I was crafty, this would be a funny signature.
user99999999 Posted April 22, 2004 Posted April 22, 2004 You have the go button wrapped in a link??? <a href="http://www.abdulky.com/catalog/advanced_search_result.php"> <input type="image" src="images/index/go_off.gif" border="0" alt="Quick Find" title=" Quick Find "></a> Should just be this <input type="image" src="images/index/go_off.gif" border="0" alt="Quick Find" title=" Quick Find ">
user99999999 Posted April 22, 2004 Posted April 22, 2004 I guess it was supposed to be like this if you wanted the additional link. <input type="image" src="images/index/go_off.gif" border="0" alt="Quick Find" title=" Quick Find "> <a href="http://www.abdulky.com/catalog/advanced_search_result.php">Advanced Search</a>
ryanf Posted April 22, 2004 Author Posted April 22, 2004 WOW! Thanks for answering my question! I originally had the go button encased in a <a href> tag so I could have rollovers. Any idea if I can still do that? If I was crafty, this would be a funny signature.
user99999999 Posted April 22, 2004 Posted April 22, 2004 I think you can do it with CSS. Search in google.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.