ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Search form by <option value="??"> only and not by text...

August 23, 2011 7:53am

Subscribe [1]
  • #1 / Aug 23, 2011 7:53am

    bob1983

    2 posts

    Hi guys

    im getting so frustrated about a needed research form..

    what i’ve to do is a search form by value only for a real estate site like this

    city
    <option1>
    <option2>

    search——> search template (render well with text research)

    when i remove the text imput field and i leave only the “option” field ee show me the no-imput error..

    this is my code :

    {exp:search:advanced_form channel="channel A|channel B"
    no_="search/noresults"result_page="search/index" search_in="everywhere"}
    
    <form action="" method="get"> 
                City
                
                  <select id="city" name="search_city[]" class="inputs" >
                    <option value="">nessuna selezione</option>
                    <option value="city1">city1</option>
                    <option value="city2">city2</option>
                  </select>
                
    
    
    
    <input name="submit" value="Ricerca" type="submit" />
    
    
    </form>
    {/exp:search:advanced_form}

    thanks allot for any advices!
    Bob

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases