$age=$_POST['age'];$name=$_POST['name'];echo ($age<=18)?"$name eres menor o tienes 18 años":"$name eres mayor de 18";