forked from tapanbk/Telephone-Billing-System
/
bill.php
27 lines (25 loc) · 870 Bytes
/
bill.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
<html><head>
</head>
<?php
include('index.php');
?>
<body>
<fieldset style="background-color:#2F4F4F">
<legend>Please Enter the Below details carefully</legend>
<form method="post" action="bill.php" >
<input type="hidden" name="posted" value="true">
ID <input type="id" name="id" placeholder="Enter the ID of customer"><br/>
<b>Calls : </b><input type="number" name="call" placeholder="Enter the total number of calls" size="40" required><br/><br/>
<b>Paid Amount: </b><input type="text" name="paid_amount" placeholder="Enter the amount paid." size="40" required><br/><br/>
<input type="submit" value="Submit">
<input type="reset" value="RESET">
</form>
</fieldset>
<?php
if(isset($_POST['posted']))
{
include('function.php');
$bill=new telephone;
$bill->bill_calculate();
}
?>