Server IP : 172.16.15.8 / Your IP : 52.14.166.224 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/ranicholson/public_html/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
<?php session_start(); ?> <!-- File name: PatientInfo.php --> <?php $pass = $_SESSION['psw']; $user = $_SESSION['usr']; if($user !="cs480" or $pass != "hw10") print "Go away."; else { ?> <body style="background-color:lightyellow;"> <FONT color=black size=4> <center> <H1> Patient Info </H1> <HR> <?php $nm = $_SESSION['v1']; $gen = $_SESSION['v2']; $num = $_SESSION['v3']; $_SESSION['v1'] = $nm; $_SESSION['v2'] = $gen; $_SESSION['v3'] = $num; print "Hello $nm!<P>"; print "You're a $gen & your phone number is $num.<P>"; $symptoms = $_POST["symptoms"]; $sym = array("Headache", "Diarrhea", "Cough", "Sore Throat", "Allergies"); if(count($symptoms) == 0) { print "NO SYMPTOMS WERE SELECTED."; print "<A HREF=PatientSelect.php><P> Click Here To Select Symptoms </A>"; } else { print "<P>The Symptoms Bothering You Include: <UL>"; foreach ($symptoms as $i) print "<LI>$sym[$i]"; print "</UL>"; } ?> <P> </FONT> </center> <?php } ?>