Upload New File

parent 5f83a951
Pipeline #33220 failed with stage
in 1 minute and 35 seconds
<?php
$con = mysqli_connect("localhost", "root", "", "blood");
?>
<h1>Are You Available to Donate Now</h1>
<form method="POST" action="form.php">
<input type="submit" name="action" value="YES" />
<input type="submit" name="action" value="NO" />
</form>
<form method="POST" action="form.php" >
<?php
$pho=$_GET['pho'];
$val="";
if($_SERVER['REQUEST_METHOD'] == 'POST'){
if(!empty($_POST['fname']))
{
$p=$_POST['fname'];
$sp="UPDATE bloo SET dd = $p WHERE mobile = $pho";
$fun=mysqli_query($con,$sp);
echo"Updated Successfully Thank You :)$p";
}
else if($_POST['action']=='YES')
{
echo"The hospital location you supposed to Donate blood-->(LINK)";
}
else if($_POST['action']=='NO')
{
echo"How Many months ago You Have Donated Blood??(Enter Only Number)<br>";
echo"<input name='fname' type='text' class='textfield' id='fname' value='$val' />";
echo "<input type='submit' name='submit' value='Submit'>";
}
}
?>
</form>
Markdown is supported
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