multiple search fields

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • josil
    New Member
    • May 2010
    • 1

    multiple search fields

    Hi
    I'm a newbie in this and need help.

    I mange to make a one field search form.

    But now I want to go further.
    How can I make a multiple field form?

    Code:
    <h2>Search</h2>  
    <form name="search" method="post" action="<?=$PHP_SELF?>"> 
    Seach for: <input type="text" name="find" /> in  <Select NAME="field"> 
    <Option VALUE="fname">First Name</option> 
    <Option VALUE="lname">Last Name</option> 
    <Option VALUE="info">Profile</option> 
    </Select> <input type="hidden" name="searching" value="yes" /> 
    <input type="submit" name="search" value="Search" /> </form>

    This is my one field form, which gives me the information about one situation

    Now, I want to combine for example, the first option value “fname” from the <Select NAME=”field”> with another option value “fcountry” from the <select COUNTRY=”field” >and another option value “fcity” from the <select CITY=”field”> and another option value “fcity” from the <select IMAGE=”field”>

    I hope I made myself clear.

    thanks
  • dlite922
    Recognized Expert Top Contributor
    • Dec 2007
    • 1586

    #2
    I don't see a PHP related question, you can just insert more html form fields between the <form>and </form> tags.

    That's it,





    Dan

    Comment

    Working...