Commit 7adb0305 authored by rama chandra's avatar rama chandra
Browse files

added create admin

parent 77debd95
$status = "";
if(isset($_POST['new']) && $_POST['new']==1)
$username =$_REQUEST['username'];
$contactno =$_REQUEST['contactno'];
$clgid =$_REQUEST['clgid'];
$ins_query="insert into admins (`username`,`email`,`contactno`,`clgid`,`region`,`clg`,`state`,`password`) values ('$username','$email','$contactno','$clgid','$region','$clg','$state','$password')";
mysqli_query($con,$ins_query) or die(mysql_error());
$status = "New Record Inserted Successfully.</br></br><a href='view.php'>View Inserted Record</a>";
<!DOCTYPE html>
<meta charset="utf-8">
<title>Insert New Record</title>
<link rel="stylesheet" href="css/style.css" />
<div class="form">
<h1>Create New Admin</h1>
<form name="form" method="post" action="">
<input type="hidden" name="new" value="1" />
<p><input type="text" name="username" placeholder="Enter Name" required /></p>
<p><input type="text" name="email" placeholder="Enter Email Address" required /></p>
<p><input type="text" name="contactno" placeholder="Enter Mobile number" required /></p>
<p><input type="text" name="clgid" placeholder="Enter Collage id number" required /></p>
<p><input type="text" name="region" placeholder="Enter region of admin" required /></p>
<p><input type="text" name="clg" placeholder="Enter Collage name present studying" required /></p>
<p><input type="text" name="state" placeholder="Enter state" required /></p>
<p><input type="text" name="password" placeholder="Enter password" required /></p>
<p><input name="submit" type="submit" value="insert" /></p>
<p style="color:#FF0000;"><?php echo $status; ?></p>
......@@ -18,6 +18,7 @@ include("auth.php"); //include auth.php file on all secure pages ?>
<p><a href="view1.php">View Records of Requested and Donated person deatils</a><p>
<p><a href="insertintodonor.php">Donor and Blood Requiested Person Details</a></p>
<p><a href="bulkupload.html">To Bulk Upload the Data</a></p>
<p><a href="createadmin.php">Create Admin</a></p>
<form method="POST" action="filter_search.php" class="bg-white rounded pb_form_v1" >
<div class="form-group">
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment