DouglasWalker Posted January 5, 2011 Share Posted January 5, 2011 Hi there I am having trouble with the code below The difficulty is with this bit I think ('input type="submit"','value="Submit"') Many thanks Doug <?php echo tep_draw_form('advanced_search', tep_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false), 'get') . tep_draw_hidden_field('search_in_description','1') . tep_draw_input_field('keywords', TEXT_ENTER_KEYWORDS , 'size="10" maxlength="30" onFocus="emptyMe()" style="width: ' . (BOX_WIDTH-25) . 'px"'); ?> <?php echo tep_hide_session_id() . ('input type="submit"','value="Submit"') . '</form>';?> Quote Link to comment https://forums.phpfreaks.com/topic/223479-parse-errors-on-search-script/ Share on other sites More sharing options...
the182guy Posted January 5, 2011 Share Posted January 5, 2011 Looks like you need to remove the second ( on the last line. Quote Link to comment https://forums.phpfreaks.com/topic/223479-parse-errors-on-search-script/#findComment-1155215 Share on other sites More sharing options...
MadTechie Posted January 5, 2011 Share Posted January 5, 2011 Whats the problem ? but it looks like your missing a function ie echo tep_hide_session_id() . ('input type="submit"','value="Submit"') something like echo tep_hide_session_id() . tep_draw_button('input type="submit"','value="Submit"') Quote Link to comment https://forums.phpfreaks.com/topic/223479-parse-errors-on-search-script/#findComment-1155216 Share on other sites More sharing options...
DouglasWalker Posted January 5, 2011 Author Share Posted January 5, 2011 Hi thank you for your super fast reply echo tep_hide_session_id() . tep_draw_button('input type="submit"','value="Submit"') This gave me a call to undefined function. I am trying to just get the standard grey submit button next to my search box. but just cant quite seem to get it Warm regards Doug Quote Link to comment https://forums.phpfreaks.com/topic/223479-parse-errors-on-search-script/#findComment-1155221 Share on other sites More sharing options...
MadTechie Posted January 5, 2011 Share Posted January 5, 2011 I don't know what the function would be called it was just an example! i'll need to see the code if you don't know the fuction then you could just echo the html, ie <?php echo tep_hide_session_id(); echo '<input type="submit" value="Submit">'; echo '</form>';?> Quote Link to comment https://forums.phpfreaks.com/topic/223479-parse-errors-on-search-script/#findComment-1155229 Share on other sites More sharing options...
DouglasWalker Posted January 5, 2011 Author Share Posted January 5, 2011 Thanks so much that solved it. Quote Link to comment https://forums.phpfreaks.com/topic/223479-parse-errors-on-search-script/#findComment-1155279 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.