how to use a relative path with form API image_button? I'm building a module in D6 that renders a form to a custom template (also within the mod).
I need to use an image for the submit button, but I'm having trouble with the path to the image.

$form['submit'] = array(
'#type' =&gt; 'image_button',
'#src'  =&gt; 'sites/all/modules/custom/mymodule/images/show-my-score-button.png',
'#value' =&gt; t('Show My Score'),
'#submit' =&gt; array('mymodule_submit'),
'#redirect' =&gt; '',


);

This is the code I have in place, and it is functional. However I can't use the path as it's shown since I don't know where my module will end up.

How can I make the image show in my module while using an image path that is relative to my module?
I'd love to have something like "/images/show-my-score-button.png" but it doesn't work.
You need to define an absolute path, a relative path won't work. But you can use the drupal_get_path() method to retrieve the path to your module, so you don't have to worry about where it will end up in the filesystem.

For example:

$image_path = drupal_get_path('module', 'mymodule') . '/images/show-my-score-button.png';