Title: multiple input search
Last modified: August 20, 2016

---

# multiple input search

 *  [donfriso](https://wordpress.org/support/users/donfriso/)
 * (@donfriso)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/multiple-input-search/)
 * Hey,
 * I’ve been scratching my head the past days and getting quite desperate for a 
   solution.
 * I’m trying to build a search from 2 user inputs. This is the code I currezntly
   have:
 * _[Code moderated as per the [Forum Rules](http://codex.wordpress.org/Forum_Welcome#Posting_Code).
   Please use the [pastebin](http://wordpress.pastebin.com/)]_
 * However! This outputs:
 * `?s=TYPED_IN_THE_INPUT_BOX&s=SELECTED_IN_DROPDOWN`
 * this ofcourse only searches for the last &s= in the url, so the input text is
   completely ignored…
 * the following search url works however:
 * `?s=TYPED_IN_THE_INPUT_BOX&SELECTED_IN_DROPDOWN`
 * So dropping the s= from the search url filters my posts perfectly.. But I can’t
   find a way to build such a search query… I’ve been googeling and reading tutorials
   for days now, and can’t seem to find anything.
 * Any ideas? Thanks so much in advanced

Viewing 1 replies (of 1 total)

 *  Thread Starter [donfriso](https://wordpress.org/support/users/donfriso/)
 * (@donfriso)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/multiple-input-search/#post-2264862)
 * I’ve been thinking about using php and http_build_query, but then I have no idea
   how to get the user inputs into strings so I can use the http_build_query

Viewing 1 replies (of 1 total)

The topic ‘multiple input search’ is closed to new replies.

## Tags

 * [input](https://wordpress.org/support/topic-tag/input/)
 * [multiple](https://wordpress.org/support/topic-tag/multiple/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 1 participant
 * Last reply from: [donfriso](https://wordpress.org/support/users/donfriso/)
 * Last activity: [14 years, 9 months ago](https://wordpress.org/support/topic/multiple-input-search/#post-2264862)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
