Jump to content

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

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"')

 

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.