westkoast Posted January 25, 2004 Share Posted January 25, 2004 I moved the default search form from the left side to the top nav, and for some reason now when a user pushed "add to cart" it trys to search instead of putting the item in the cart. Is there any way to get around this? When I comment out the top search it seems to work fine, but when the search is active every submit button make the search form go off. http://www.urbaneffect.com I need to read the rules more often... Link to comment Share on other sites More sharing options...
Guest Posted January 26, 2004 Share Posted January 26, 2004 You are missing a </form> tag at the end of your search code - eg. <td valign="top"><?php $hide = tep_hide_session_id(); echo '<form name="quick_find" method="get" action="' . tep_href_link (FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false) . '">'; echo $hide . '<input "type="text" name="keywords" onFocus=this.value="" size="15" maxlength="30" value="' . BOX_SEARCH_TEXT . '"> ' . '<input type="submit" value="Go"><br><b><a href="' . tep_href_link(FILENAME_ADVANCED_SEARCH) . '">' . BOX_SEARCH_ADVANCED_SEARCH . tep_draw_hidden_field('search_in_description', '1') . '</a></b>'; echo '</form>'; ?></td> Matti Link to comment Share on other sites More sharing options...
westkoast Posted January 27, 2004 Author Share Posted January 27, 2004 Sweet, thanks a ton. That fixed it! I need to read the rules more often... Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.