-
Notifications
You must be signed in to change notification settings - Fork 0
/
bank2.php
65 lines (63 loc) · 1.31 KB
/
bank2.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<!DOCTYPE html>
<html lang="en" dir="ltr">
<body>
<center>
<h1 class="ab">Select And View one Customer</h1>
<?php
$conn = new mysqli("localhost", "root","" , "banking");
$query="select * from customers";
$result=$conn->query($query);?>
<form class="" action="" method="post">
<select name='ind'>
<?php while($row = $result->fetch_assoc()){?>
<option id="dropdown" value="<?php echo "Name: " . $row["Name"] . " <br> Email: " .$row["Email"]. " <br> CurrentBallance: " .$row["CurrentBallance"]. " ";?>"> <?php echo " " . $row["Name"] . " ";
?>
<?php
}
?>
<input type="submit" name="submit" value="Submit">
</form>
<br><br><br>
<br><br><br>
<?php
if(isset($_POST["submit"])){
$value=$_POST['ind'];
?>
<div class="abc">
<?php
echo "Details <br>";
echo($value);
}
?>
</div>
<br><br><br>
<br>
<?php if(isset($_POST["submit"])){ ?>
<form class="" action="bank3.php" method="post">
<button class="sub" type="submit" name="button">Transfer Money</button>
</form>
<?php } ?>
</center>
</body>
<style>
body {
background-image: url('https://wallpapercave.com/wp/wp2561067.jpg');
}
#dropdown{
width: 1000px;
border-radius:1000px;
background-color:#D2B48C;
}
.abc{
color: #8B4513;
}
.ab{
color: #808000;
}
.sub{
background: #F0E68C;
width: 250px;
height: 40px;
}
</style>
</html>