-
Notifications
You must be signed in to change notification settings - Fork 0
/
AtmWithdrawal.php
38 lines (36 loc) · 1.11 KB
/
AtmWithdrawal.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
<?php
session_start();
if (!isset($_SESSION['User'])& empty($_SESSION['User'])) {
header('location: Login.php');
}
?>
<script src="https://code.jquery.com/jquery-2.1.1.min.js" type="text/javascript"></script>
<script>
function checkAvailability() {
$("#loaderIcon").show();
jQuery.ajax({
url: "check_availability.php",
data:'AccNo='+$("#AccNo").val(),
type: "POST",
success:function(data){
$("#user-availability-status").html(data);
$("#loaderIcon").hide();
},
error:function (){}
});
}
</script>
<form method="post" action ="AtmWithdrawalCode.php" enctype="multipart/form-data">
<label for="ATM_no">ATM Number</label>
<input type="number" id="ATM_No" name="ATM_No" placeholder="1">
<br>
<label for="AccNo">Enter Account Number</label>
<input type="number" id="AccNo" name="AccNo" placeholder="" onBlur="checkAvailability()"><span id="user-availability-status"></span>
<br>
<br>
<label for="amount">Enter the amount</label>
<input type="number" step="0.01" id="amount" name="amount" placeholder="0">
<br>
<button type="submit">ATM Withdraw</button>
</form>
</form>