google.com, pub-4617457846989927, DIRECT, f08c47fec0942fa0 Learn to enjoy every minute of your life.Only I can change my life.: PHP program of Slip 19 practical of User Information in bill

Sunday, January 20, 2019

PHP program of Slip 19 practical of User Information in bill


<?
// This is Slip19_a.php
// It takes User Information And Send it to slip19_b.php
?>
<html>
<body bgcolor=#AAAAAA>
<center> <font color="red" font size=6>U</font>ser Information</center>
<br><br><br>
<form action="slip19_b.php" method="GET">
<p>
<table border=0>
<tr><td>Name:<td> <input type="text" name="u_name">

<tr><td>Address:<td> <input type="text" name="u_address">

<tr><td>Phone No:<td> <input type="text" name="u_no">
<tr><td><td><input type="submit" value="SUBMIT">
</form>
</table>
</form>
</body>
</html>





















<?
// This is Slip19_b.php
// It Takes The Product Information....
//and Passes to Slip19_c.php

?>
<html>
<body bgcolor=#AAAAAAA>
<center><font color="red" font size=6>P</font>roduct Information</center>
<br><br><br>
<form action="slip19_c.php" method="POST">
<p>
<table border=0>
<tr><td>Prod.Name:<td> <input type="text" name="p_name">

<tr><td>Quantity:<td> <input type="text" name="p_qty">

<tr><td>Rate:<td> <input type="text" name="prize">

<tr><td><?
$var1=$_GET['u_name'];
$var2=$_GET['u_address'];
$var3=$_GET['u_no'];
printf("<br><br>Customer Information is:");
printf("<br><br><input type='text' name='user' value='$var1'><br>");
printf("<input type='text' name='add' value='$var2'><br>");
printf("<input type='text' name='phone' value='$var3'><br>");
?>

<tr><td><td><input type="submit" value="Display">

</table>
</form>
</body>
</html>
















<?
// This is Slip19_c.php
//It Genrates the Tabular format bill of the Customer
?>

<html>
<body bgcolor=#AAAAAAA>
<center><font color="red" font size=6>B</font>ill Information</center>
<br><br><br>
<center>
<table border=1 cellspacing=2 cellpadding=2>
<?
$usr_name=$_POST['user'];
$usr_address=$_POST['add'];
$usr_phone=$_POST['phone'];
$prod_name=$_POST['p_name'];
$prod_quantity=$_POST['p_qty'];
$prod_price=$_POST['prize'];
$bill=$prod_quantity*$prod_price;
printf("<br><br><br>");
printf("<th bgcolor=#ABCDEF>Customer Bill<td bgcolor=#ABCDEF>");
printf("<tr><td>Name<td>$usr_name");
printf("<tr><td>Address<td>$usr_address");
printf("<tr><td>Phone No<td>$usr_phone");
printf("<tr><td>Product Name<td>$prod_name");
printf("<tr><td>Product Quantity<td>$prod_quantity");
printf("<tr><td>Product Price<td>$prod_price / Unit");
printf("<tr><td>Total<td>$bill Rs.");
?>
</table>
</form>
</body>
</html>




रामायण

रामायण दशरथ की तीन पत्नियाँ – कौशल्या, सुमित्रा , कैकेयी दशरथ के चार पुत्र – राम,लक्ष्मण,भरत,शत्रुघ्न दशरथ: राम के पिता और कौशल के राजा कौशल...