multiple search

multiple search

i have developed flight status system and i am stuck in middle. i have four attributes for search option. how can i make the search work in such a way that when user enters only one attribute or all four to search the flight  status. i am new to this please help me.