Server IP : 172.16.15.8 / Your IP : 3.148.117.237 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/kfmurray/www/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
<!-- File name: Session3.php CS480 Assignment 4, Project c Due: February 20, 2018 Author: Kevin Murray Instructor: Dr. Wang Goal: Create a login page to use the General Calculator. Also add mod and exponent to calculator --> <?php session_start(); $passcode = $_POST['passcode']; $_SESSION['psw'] = $passcode; if($passcode != "hw4c") print "Go Away!"; else { ?> <CENTER> <H2> The General Calculator </H2> <HR> <FORM action=session4.php method=post> Input first value: <INPUT type=text name=n1> <P> Input the second value: <INPUT type=text name=n2> <P> <INPUT type=submit value=Submit> <INPUT type=reset value=Reset> </Form> </CENTER> <?php } ?>