Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

I need help with a php button code


agiftcodotcom

Recommended Posts

Posted

How can I make this code...

 

<b>Search:</b></font size=1> 
<?php echo tep_draw_form('advanced_search', tep_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false), 'get'). tep_draw_input_field('keywords','','size="10" maxlength="30" style="width: ' . (BOX_WIDTH-30) . 'px"')?>  <input type="image" src="includes/languages/english/images/buttons/button_search.gif" border="0" alt="Quick Find" title=" Quick Find "></form>

 

 

Use the same button image as this code.....

 

 

  $info_box_contents[] = array('form' => tep_draw_form('quick_find', tep_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false), 'get'),
                              'align' => 'center',
                              'text' => tep_draw_input_field('keywords', '', 'size="10" maxlength="30" style="width: ' . (BOX_WIDTH-30) . 'px"') . ' ' . tep_hide_session_id() . tep_image_submit('button_quick_find.gif', BOX_HEADING_SEARCH) . '<br>' . BOX_SEARCH_TEXT . '<br><a href="' . tep_href_link(FILENAME_ADVANCED_SEARCH) . '"><b>' . BOX_SEARCH_ADVANCED_SEARCH . '</b></a>');

 

I am using the rollover contribution so I need the first button to use the same php type code for the button area as the second one uses.

 

The first code is a search box in my header. The second is the original search box code.

[/code]

Contributions I used : Updated 06-13-04 23:42

----------------

Vote on My Graphis Poll

Posted

just change button_search to button_quick_search

If I was crafty, this would be a funny signature.

Archived

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

×
×
  • Create New...