$szam = $_GET['szam']; if ($szam > 0) { echo "Pozitív"; } elseif ($szam < 0) { echo "Negatív"; }else { echo "Nulla"; }