Ayrı ayrı kullanacaksın

if(!empty($_POST['kelime'])) {
   $ara = $_POST['kelime'];
}
if(!empty($_GET['kelime'])) { 
 
   $ara = $_GET['kelime'];
}