<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml">

<!--
    Our second PHP-enabled HTML document...?
    now with require_once-provided server-side-includes!

    by: Sharon Tuttle
    last modified: 2024-03-19

    you can run this using the URL:
    https://nrs-projects.humboldt.edu/~st10/s24cs328/328lect09-1/328lect09-1-play2.php

    made the XHTML version for strict-validation using:
    php 328lect09-1-play2.php > 328lect09-1-play2.xhtml
-->

<head>
    <title> 328lect09-1-play2 </title>
    <meta charset="utf-8" />

    <?php
        /*=== 
            including the definition of function square 
            from file square.php
        ===*/

        require_once("square.php");
    ?>

    <link href="https://nrs-projects.humboldt.edu/~st10/styles/normalize.css"
          type="text/css" rel="stylesheet" />
</head>

<body>

    <h1> Our Second PHP-enabled document! </h1>

    <?php
        // Note the PHP expression tags below 
        //     calling the PHP function square.
    ?>
    
    <p> Please show me the square of 2.5: <?= square(2.5) ?> </p>

    <p> Please show me the square of 4: <?= square(4) ?> </p>

<?php
    /*===
        including this CS 328 class footer boilerplate
        from 328footer.html
    ===*/

    require_once("328footer.html");
?>
</body>
</html>