Wordpress Search

Discussion in 'WordPress' started by wiseboke, Jan 21, 2011.

  1. #1
    I want to add advanced search for my blog and I have got some problems.
    The default search form of my site is
    <div class="search">
            <form action="<?php bloginfo('url'); ?>" method="get">
                <input class="searchText" type="text" name="s" value="" onfocus="this.value=(this.value=='') ? '' : this.value;" onblur="this.value=(this.value=='') ? '' : this.value;" />
    			<!-- <input class="go" type="image" src="<?php bloginfo('stylesheet_directory'); ?>/images/searchBtn.jpg" alt="Search" /> -->
                <div style="clear:both"></div>
             </form>
        </div>
    Code (markup):
    It works!
    when I try this advanced form,I never get it right
    <form action = "<?php bloginfo('url'); ?>" method = "get" id="search">
    <label>Type     </label>
    <select name="type" size = "1">
      <option value="app">Dating App
          <option value="sites">Dating Sites
      </select><br>
      <label>Region </label>
      <select name="country" size = "1">
      <option value="us">US
        <option value="uk">UK
        <option value="ca">CA
       <option value="au">AU
          </select><br>
    <input type="submit" value="Advanced Search">
    </form>
    Code (markup):
    Anyone can tell me what's wrong?
     
    wiseboke, Jan 21, 2011 IP