Q:

using an image for a button on php

I have a php script which creates its own button, as I am using an open source framework. What I want is to use an image to create a button instead of a the link the is created. Here is the line for which I need the button:
<td class="main button_marg"><?php echo tep_draw_button(IMAGE_BUTTON_REVIEWS . (($reviews['count'] > 0) ? ' (' . $reviews['count'] . ')' : ''), 'comment', tep_href_link(FILENAME_PRODUCT_REVIEWS, tep_get_all_get_params())); ?></td>

That is the script I am using to create the review button, but I would like to insert an image into it. Any ideas would be most appreciative.
This is the code for tep_draw_button() function:
function tep_draw_button($title = null, $icon = null, $link = null, $priority = null, $params = null) {
static $button_counter = 1;

$types = array('submit', 'button', 'reset');

if ( !isset($params['type']) ) {
  $params['type'] = 'submit';
}

if ( !in_array($params['type'], $types) ) {
  $params['type'] = 'submit';
}

if ( ($params['type'] == 'submit') && isset($link) ) {
  $params['type'] = 'button';
}

if (!isset($priority)) {
  $priority = 'secondary';
}

$button = '<span class="tdbLink">';

if ( ($params['type'] == 'button') && isset($link) ) {
  $button .= '<a id="tdb' . $button_counter . '" href="' . $link . '"';

  if ( isset($params['newwindow']) ) {
    $button .= ' target="_blank"';
  }
} else {
  $button .= '<button id="tdb' . $button_counter . '" type="' . tep_output_string($params['type']) . '"';
}

if ( isset($params['params']) ) {
  $button .= ' ' . $params['params'];
}

$button .= '>' . $title;

if ( ($params['type'] == 'button') && isset($link) ) {
  $button .= '</a>';
} else {
  $button .= '</button>';
}

$button .= '</span><script type="text/javascript">$("#tdb' . $button_counter . '").button(';

$args = array();

if ( isset($icon) ) {
  if ( !isset($params['iconpos']) ) {
    $params['iconpos'] = 'left';
  }

  if ( $params['iconpos'] == 'left' ) {
    $args[] = 'icons:{primary:"ui-icon-' . $icon . '"}';
  } else {
    $args[] = 'icons:{secondary:"ui-icon-' . $icon . '"}';
  }
}

if (empty($title)) {
  $args[] = 'text:false';
}

if (!empty($args)) {
  $button .= '{' . implode(',', $args) . '}';
}

$button .= ').addClass("ui-priority-' . $priority . '").parent().removeClass("tdbLink");</script>';

$button_counter++;

return $button;
}
?>

A:

You can probably override the style by using some css:
#your_button_id{ background: url(); height: x; width: x; etc...  }
.your_button_class{ background: url(); height: x; width: x; etc...  }

