<html>
<body>
   <?php
      $fullname = $_REQUEST['fname']." ".$_REQUEST['lname'];
   ?>
   <form action="?" method="get">
      First name: <input type="text" id="fname" name="fname" value=<?php echo $text;?>><br>
      Last name:  <input type="text" id="lname" name="lname" value=<?php echo $text;?>><br>
	  <input type="submit" id="submit" value="Submit"><br>
   </form>
   <?php
      if($fullname!="")
         echo "<p Fullname: id=fullname>".$fullname."</p>";
   ?>
</body>
</html>