<?php
session_start();
?>
<!DOCTYPE html>
<html>
<head>
<title>Add Record</title>
</head>
<style>
body{
background-repeat:no-repeat;
background: url('childback.jpg');
}
.text{
background-color:#c2d6d6;
border:none;
padding:9px 10px;
}
.container {
position:absolute;
margin: 22px 50px 50px 40px;
padding: 25px;
background-color: white;
font-family:Century Gothic;
}
select{
width: 200px;
height: 30px;
}
input[type='submit']{
width:100px;
height:35px;
border-radius:50px 50px 50px 50px;
}
</style>
<body>
<form method="POST" class="container" action="<?php $_SERVER['PHP_SELF'] ?>">
<div style="padding:20;font-size:20">
<a href="parentindex.php"><img src="backarrow.png" width="30" height="30"></a>
<center><h1 >Add New Record</h1></center>
<label><b>Last Name</b></label></br>
<input type="text" name="cname" class="text" placeholder="Enter Last Name" size="70" required /></br></br>
<label><b>First Name</b></label></br>
<input type="text" name="cname" class="text" placeholder="Enter First Name" size="70" required /></br></br>
<label><b>Middle Name</b></label></br>
<input type="text" name="cname" class="text" placeholder="Enter Middle Name" size="70" required /></br></br>
<label><b>Age</b></label>
<input type="number" name="cage" class="text" placeholder="Enter Age" size="40" required /></br></br>
<label><b>Gender</b></label></br>
<input type="radio" name="cgender" value="Male" required />Male
<input type="radio" name="cgender" value="Female" required />Female
</br></br>
<label ><b>Birthday</b></label></br>
<input type="date" name="cbirth" required />
</br></br>
<label ><b>Address</b></label></br>
<input type="text" name="ccity" class="text" placeholder="Enter Address" size="70" required /></br></br>
<label ><b>Category</b></label></br>
<select name="ccity">
<option value="none" selected disabled hidden> Select a category</option>
<option value="Moderna">Moderna</option>
<option value="Pfizer">Pfizer</option>
<option value="Sinovac">Sinovac</option>
<option value="Johnson&Johnson">Johnson&Johnson</option>
<option value="">Vapi</option>
</select>
</br></br>
<label ><b>Date of First Dose</b></label></br>
<input type="date" name="cbirth" required />
</br></br>
<label ><b>Date of Second Dose</b></label></br>
<input type="date" name="cbirth" />
</br></br>
<?php
include 'database_connection.php';
$query="SELECT * FROM vaccine";
$result=mysqli_query($con,$query);
while ($row = mysqli_fetch_array($result))
{
echo "<table>
<tr>
<td><input type='checkbox' name='chk[]' value='".$row['name']."' />".$row['name']."</td>
</tr>
</table>";
}
?>
<br>
<center><input type="Submit" name="addchild" value="Save Record"/></center>
</div>
<?php
if(isset($_POST['addchild']))
{
$con=mysqli_connect("localhost","root","","e_vaccination");
$name = $_POST['cname'];
$gen = $_POST['cgender'];
$city = $_POST['ccity'];
$birth = $_POST['cbirth'];
$age = $_POST['cage'];
$weight = $_POST['cweight'];
$height = $_POST['cheight'];
$chkval = implode(',',$_POST['chk']);
$p_username = $_SESSION['username'];
$query="INSERT INTO child VALUES('$name','$gen','$city','$birth',$age,$weight,$height,'$chkval','$p_username')";
$result=mysqli_query($con,$query);
if(!$result)
{
die("<br>Can't Insert Data : " .mysqli_error());
}
$vaccineval = $_POST['chk'];
$date = date('Y-m-d');
for($i=0; $i<count($vaccineval); $i++)
{
$query_vaccine = "SELECT * FROM vaccine ";
$result_vaccine = mysqli_query($con,$query_vaccine);
while($row_vaccine = mysqli_fetch_array($result_vaccine))
{
if($vaccineval[$i] == $row_vaccine['name'])
{
$time = strtotime($date);
$final = date("Y-m-d", strtotime($row_vaccine['timing'], $time));
$query_date = "INSERT INTO vaccine_dates VALUES('$vaccineval[$i]','$date','$final','$name','$p_username','false')";
$result = mysqli_query($con,$query_date);
if(! $result)
{
die('Could not insert Records: ' . mysql_error());
}
}
}
}
echo "<script>alert('Add New Record..!!');window.location='parentindex.php'</script>";
}
?>
</body>
</html>
Hello can you help from the code above I see this particular checkbox with BCG in it and I want to delete it but I cant find where it is. I provide the image below it is encircle in red.
Step by stepSolved in 3 steps with 1 images
- A file with the name "Index.html" is notable for a number of different reasons.arrow_forwardwhat I have so far <!DOCTYPE html><html><head><meta charset=”utf-8”><title>Lab1</title> <style>body { background-color: #556271; margin: 0 10%; font-family: sans-serif; color: white;} h1 {color: #FE6A67;text-align: center; font-weight: normal; text-transform: uppercase; border-bottom: 1px solid #D4DCCD; margin-top: 30px;}h2 {font-size: 1em;}</style> </head> <body> <h1><img><br><img src="21.png"><p>Amet Justo Donec</p></h1> <p>Cursus EgetPurus sit amet volutpat consequat mauris nunc congue nisi vitae. Suscipit tellus mauris a diam maecenas sed enim ut sem viverra aliquet eget sit.<p/><h2>Cursus Eget</h2><p>Purus sit amet volutpat consequat mauris nunc congue nisi vitae. Suscipit tellus mauris a diam maecenas sed enim ut sem viverra aliquet eget sit.<p/><h2>Diam</h2><p>Urna condimentum mattis pellentesque id nibh tortor. Id aliquet…arrow_forward<!doctype html><html><head><meta charset="UTF-8"><title>Flexbox Product Listing Exercise</title> <style>html { box-sizing: border-box;}*, *:before, *:after { box-sizing: inherit;}body { font-family: Georgia, serif; line-height: 1.5em;}h1 { font-size: 4em; font-weight: normal;}h2 { font-size: 1.2em; margin-top: 0;}#menu { border: 3px solid #783F27; }section { background: #F6F3ED; margin: 10px; padding: 20px; border: 1px dotted maroon; width: 240px; display:flex; flex-direction:column;}.title { background-color: #783F27; color: #F9AB33; line-height: 4em;}.price { font-weight: bold; background: #F9AB33; padding: 5px; width: 100%; text-align: center; margin-top:auto;}</style> </head> <body><div id="menu"><section class="title"><h1>Bistro Items To Go</h1></section> <section class="dish"><h2>1<br>Black bean purses</h2><p class="info">Spicy black bean…arrow_forward
- Edit the existing code to add an admin account that is seperate from the regular user accounts. When logging in using the admin account, the page should redirect you to sales.html Existing code: login.js function Login() {window.location.href = window.location.href.substring(0, window.location.href.lastIndexOf('/')) + "/Login.html"} function ResetPassword() {window.location.href = window.location.href.substring(0, window.location.href.lastIndexOf('/')) + "/resetpassword.html"} function LoginUser() {var userName = document.getElementById("txtUserName").value;var password = document.getElementById("txtPassword").value; var user = JSON.parse(localStorage.getItem("user")); var storedUserName = user.email;var storedPassword = user.password; if (storedUserName && storedPassword) { if (userName.length > 0 && password.length > 0) { if (userName == storedUserName && password == storedPassword) {alert("Logged In");} else {alert("username or password does not match…arrow_forwardWeb Page: http://web.archive.org/web/20210411193535/https://docs.python-requests.org/en/master/ Inspect the Title Text (Requests: HTTP for HumansTM). What kind of element is it (what is its HTML tag)?arrow_forwardA file called "Index.html" is noteworthy for a variety of reasons.arrow_forward
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education