<?php
  if(isSet($_REQUEST["nupp"])){
    if($_REQUEST["nupp"]=="Tervita"){
      echo "Tere, ".$_REQUEST["eesnimi"];
    }
    if($_REQUEST["nupp"]=="Lehvita"){
      echo "Head aega, ".$_REQUEST["eesnimi"];
    }
  } else {
    echo "Nuppu ei vajutatudki";
  }
?>