connected search button to php function