Hi all
Just wondering how to change the search button on search.php for an image instead
Thanks ;D
Edit search.php, find<input type="submit" value="{$lang_search_php['submit_search']}" class="button" />
and replace with <button name="submit" type="button" value="" onclick="document.searchcpg.submit();">
<img src="your_image.gif" width="100" height="20" alt="" border="0" title="{$lang_search_php['submit_search']}" />
</button>
In the future, please use a better subject: this is not related to queries at all, but a plain HTML customization.
Thank you :o
I've changed everything but there is still a button with the image inside it, I just want the image ???
That's expected behaviour when using the <button>-tag (it is what the name suggests). I thought this is what you where up to. If you only want an image, then use<a href="javascript:;" onclick="document.searchcpg.submit();">
<img src="your_image.gif" width="100" height="20" alt="" border="0" title="{$lang_search_php['submit_search']}" />
</a>
As I already told you, this is plain HTML and not directly related to Coppermine. Read up some HTML tutorials if you need to find out more.