Forums / Developer / Submit error / Comment51657
Virgilio Lemos
Friday 28 August 2009 2:17:23 pm
André,
Could you please verify if I'm making any other mistake, cause de code is still not working. The selection is not being passed to EzFind. Message: Search for " " returned...Isn't a command like onclick missing?
<form action={"/content/search"|ezurl}> <select name="Estado"> <option>RJ</option> <select name="Cidade"> <option>Niterói</option>< /form>
{def $post_search_text = ''} {if ezhttp_hasvariable( 'Estado', 'post' )} {set $post_search_text = ezhttp( 'Estado', 'post' )} {/if} {if ezhttp_hasvariable( 'Cidade', 'post' )} {set $post_search_text = concat($post_search_text, ' ', ezhttp( 'Cidade', 'post' ))} {/if}<input type="hidden" name="SearchText" value="{$post_search_text}" />
<input id="searchbutton" class="button" type="submit" value="{'Search'|i18n('design/ezwebin/pagelayout')}" alt="{'Search'|i18n('design/ezwebin/pagelayout')}" />