Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2011-10-20 11:51:22

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,258
Website GitHub Mastodon Twitter

[SOLVED] use image for search button and match all

Can anybody tell me how I can have the match=all attribute in search AND use an image instead of a button?

At the moment this is what I have but the queries sent do not use the match="all" attribute.

<form id="search" method="get" action="<txp:site_url />">
<input type="text" name="q" id="qsearch" value="" title="search" size="30" />
<input type="image" value="Search" class="button" src="<txp:site_url />images/search.gif" title="Search" />
</form>

Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#2 2011-10-20 16:33:59

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,258
Website GitHub Mastodon Twitter

Re: [SOLVED] use image for search button and match all

solved

final xhtml strict code

<form id="search" method="get" action="<txp:site_url />">
<fieldset>
<input type="hidden" value="any" name="m" />
<input type="text" name="q" id="q" value="<txp:page_url type="q" />" title="search" size="30" />
<input type="image" value="Search" class="button" src="<txp:site_url />images/search.gif" title="Search" />
</fieldset>
</form>

Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

Board footer

Powered by FluxBB