Location: PHPKode > projects > Pet Grooming Management System > pet/useradded.php
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<html>
<head>
<title>PGMS User Added Page</title>
<?php
$lname = $_POST['lname'];
$fname = $_POST['fname'];
$user = $_POST['user'];
$pwd = $_POST['pwd'];
$level = $_POST['level'];
$centstatus = $_POST['centerstatus'];
?>
<META HTTP-EQUIV="REFRESH" CONTENT="2;URL=blank.php">
</head>
<body>
<?php
require ('header.inc');
require ('info.inc');
mysql_connect('localhost',$r,$p) or die("Could not connect to Host.");
mysql_select_db($d) or die("Could not select database.");
$query = "insert into users (user, password, level, lname, fname,censtatus)
         values ('$user','$pwd','$level','$lname','$fname', '$centstatus')";
$result = mysql_query($query);
	 if (mysql_affected_rows()==1){
	     echo '<P>A new user has been added. You will be directed to the manage users page in 10 seconds';
			 }else{
			 echo '<P>Something went wrong with you add a new user attempt.</P>';
			 } 
require('footer.inc');
?>
</body>
</html>
Return current item: Pet Grooming Management System