Jump to content

parse errors on search script


DouglasWalker

Recommended Posts

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>';?>

Link to comment
https://forums.phpfreaks.com/topic/223479-parse-errors-on-search-script/
Share on other sites

 

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

 

 

 

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>';?>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.