• Hi, I’m trying to change the searchform adding select tags.
    In Hueman if i search “a b c” the search result in the url is “/?s=a+b+c”, but with the new form I am not able to print the sum.

    How can i solve?

    This is the code:

    <form role="search" method="get" id="searchform" action="<?php echo home_url( '/' ); ?>">
    <label>
    <select name="s" id="s">
    <option value="nessuno">choose</option>
    <option value="a">a</option>
    <option value="b">b</option>
    <option value="c">c</option>
    </select>
    </label>
    <label>
    <select name="s" id="s">
    <option value="nessuno">choose</option>
    <option value="1">1</option>
    <option value="2">2</option>
    <option value="3">3</option>
    </select>
    </label>
    <label>
    <input type="submit" id="searchsubmit" value="Search" />
    </label>
    </form>

    [Moderator Note: Please post code & markup between backticks or use the code button. Your posted code may now have been damaged by the forum’s parser.]

The topic ‘add SELECT in searchform.php’ is closed to new replies.