Server IP : 172.16.15.8 / Your IP : 18.219.18.238 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/ctirby/www/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
<!-- File name: PatientInfo.php --> <body style="background-color:blue;"> <CENTER> <H2> Patient's Info </H2> </CENTER> <HR> <?php session_start(); $pass = $_SESSION['psw']; $user = $_SESSION['usr']; if($pass != "hw10" or $user != "cs480") print "Go away."; else { $name = $_SESSION['na']; $gen = $_SESSION['ge']; $phone = $_SESSION['ph']; $_SESSION['na'] = $name; $_SESSION['ge'] = $gen; $_SESSION['ph'] = $phone; $symptoms = $_POST['symptoms']; $sym = array("Headache", "Diarrhea", "Cough", "Sore Throat", "Allergies"); print "Name: $name <P> Phone name: $phone <P> Gender: $gen <P>"; //print "<P>Your symptoms include the following: <UL>"; if(count($symptoms) == 0) { print "No symptoms were selected! You must select at least one symptom. "; print "<A HREF = PatientSelect.php> GO BACK </A></CENTER>"; } else { print "Your symptoms include the following: <UL>"; foreach ($symptoms as $i) print "<LI>$sym[$i]"; print "</UL>"; } } ?> </body>