Server IP : 162.240.98.243 / Your IP : 52.15.129.253 Web Server : Apache System : Linux server.bti.yaw.mybluehostin.me 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64 User : btiyawmy ( 1003) PHP Version : 7.2.34 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/btiyawmy/public_html/login.easenup.in/ |
Upload File : |
<?php session_start(); require_once('../DBManager.php'); require_once('../LoginManager.php'); include 'menu.php'; include 'header.php'; $DisplayForm=True; $narayan=LoginManager::currentUser(); $hari=LoginManager::getUserTypeByuname("$narayan"); $sql ="SELECT * FROM manpower WHERE adminid='$hari'"; $qsql = mysqli_query($con,$sql); if($rh = mysqli_fetch_array($qsql)) { $DisplayForm=False; echo "<script>window.location='show_Manpower.php'</script>"; } if($DisplayForm) { ?> <?php session_start(); require_once('../DBManager.php'); require_once('../LoginManager.php'); include 'header.php'; //Code for Registration if(isset($_POST['signup'])) { $narayan=LoginManager::currentUser(); $hari=LoginManager::getUserTypeByuname("$narayan"); $adminid=$hari; $RMO=$_POST['RMO']; $paramedic=$_POST['paramedic']; $nonparametric=$_POST['nonparametric']; $msg=mysqli_query($con,"insert into manpower(adminid,RMO,paramedic,nonparametric) values('$adminid','$RMO','$paramedic','$nonparametric')"); if($msg) { echo "<script>alert('Manpower Add successfully');</script><script>window.location='price.php'</script>;</script>"; } } ?> <!DOCTYPE html> <html> <title>Testing new </title> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css"> </script> </head> <body> <div class="content-wrapper"> <!-- Content Header (Page header) --> <section class="content-header"> <form name="signup" method="post" > <fieldset> <legend> <h3>Manpower information</h3> </legend> <div class="account-details"> <label>Number of RMO/duty doctors<span>*</span></label> <input class="w3-input w3-border" name="RMO" type="text"> <label>Number of paramedic staff<span>*</span></label> <input class="w3-input w3-border" name="paramedic" type="text"> <label>Number of non-paramedic staff<span>*</span></label> <input class="w3-input w3-border" name="nonparametric" type="text"> </div> <br> <button type="submit" name="signup" > Submit</button> </div> </div> </form> <?php } ?> </body> </html>