You will be creating many web pages while working with PHP. To save on typing and to make your code more readable (almost self-documenting at times), it is advantageous to store common HTML code fragments in functions which can be kept in a separate file. These can then be called upon when needed.
This programming technique requires the use of two files. The first is an HTML page which is either a static page or a dynamic one generated by a PHP script. This page transmits data back to the server where it is processed by a PHP script.
We will continue with the area-of-a-triangle problem for this demonstration.
N.B. For this code to work, make a copy of triform.html, calling the copy triformfunct.html. Change the line