Rick87 Posted August 5, 2006 Share Posted August 5, 2006 Hi, I'm butchering the files around a bit to develop my own shop (still haven't got onto the fun stuff of deploying and securing the thing, but that's another issue, lol), and what I'd really like to do is to remove the search function from being bound inside an infobox, and instead simply have it as a single text input field with a submit button next to it, nothing else, called in a single block of code, that I can move around the body of a page as I wish. My problem is that with advanced PHP everywhere, defines everywhere, and remote calls to functions in other files, I'm completely lost as to what code to pick out to achieve this. A large amount is passed to the infobox function, which is in turn passed around the tablebox, etc, and I completely lose track of what is necessary. I'd be very grateful if anyone could shed some light on this, thanks =). Rick Link to comment Share on other sites More sharing options...
Rick87 Posted August 5, 2006 Author Share Posted August 5, 2006 I've butchered the code to this, but it lacks session info that the example search has plus some other stuff - is this still secure? $form = '<form name="quick_find" action="'; $form .= tep_output_string(tep_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false)); $form .= '" method="get">'; echo "$form"; $ipfield = tep_draw_input_field('keywords', '', 'size="10" maxlength="30" style="width: ' . (BOX_WIDTH-30) . 'px"'); $ipfield .= tep_image_submit('button_quick_find.gif', BOX_HEADING_SEARCH); echo "$ipfield </form>"; Link to comment Share on other sites More sharing options...
choosealogin Posted August 5, 2006 Share Posted August 5, 2006 I think this will be easier for you :) http://www.oscommerce.com/community/contri...ch+box+anywhere Link to comment Share on other sites More sharing options...
Rick87 Posted August 5, 2006 Author Share Posted August 5, 2006 awesome, thanks, il look thru the contribs and see what else there is there that will be useful. thanks a lot =). out of interest. if it's not required, what is the point of passing all the session stuff to it in the original form? Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.