post ile degerleri çek.örn

$yas = $_POST['yas'];
$cinsiyet =$_POST['cinsiyet'];
sorgunada.

where yas like '%".$yas."%' or cinsiyet like '%".$cinsiyet."%'
mantık bu kolay gelsin