Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html lang="pl">
- <head>
- <meta charset="UTF-8" />
- <title> formularz </title>
- <style type="text/css">
- body {background-color:lightgray}
- #tabela {
- border: 1px solid black;
- border-collapse: collapse;
- background-color: #EEEEEE;
- algin:center;
- }
- #cus{
- border: 1px solid black;
- border-collapse: collapse;
- }
- </style>
- </head>
- <body>
- <h1 > Zamówienie </h1>
- <form action="po.php" method="post">
- Imię:
- <input type="text" name="imie" /> </br>
- Nazwisko:
- <input type="text" name="nazwisko" /> </br>
- Adres zamieszkania:
- <input type="text" name="adres" /> </br>
- <table id="tabela" align="center">
- <tr id"cus">
- <th scope="col" name="zamowienie"> Zamówienie </th>
- <th scope="col"> Cena za sztukę(PLN.szt) </th>
- <th scope="col"> Ilość </th>
- </tr>
- <tr>
- <th scope="row" > Ceremonia Ślubna </th>
- <th scope="row"> 600 zł</th>
- <th scope="row"> <input type="text" name="cerem"/> </th>
- </tr>
- <tr>
- <th scope="row"> Błogosławieństwo </th>
- <th scope="row"> 300,50 zł </th>
- <th scope="row"> <input type="text" name="blog" /> </th>
- </tr>
- <tr>
- <th scope="row"> Płyta </th>
- <th scope="row"> 2 zł </th>
- <th scope="row"> <input type="text" name="ply" /> </th>
- </tr>
- <tr>
- <th scope="row"> Opakowanie </th>
- <th scope="row"> 4,20 zł </th>
- <th scope="row"> <input type="text" name="opa" /> <align="center" </th>
- </tr>
- <tr>
- <th scope="row"> Album </th>
- <th scope="row"> 80 zł</th>
- <th scope="row"> <input type="text" name="alb"/> </th>
- </table>
- <input type="submit" value="Wyślij zamówienie" align="right" />
- </form>
- <?php
- $imie=$_POST['imie'] ;
- $nazwisko=$_POST['nazwisko'] ;
- $adres=$_POST['adres'] ;
- $vat= 0.23 ;
- $koszt1=600;
- $koszt2=300.50;
- $koszt3=2 ;
- $koszt4=4.20;
- $koszt5=80;
- $cerem=$_POST['cerem'];
- $blog =$_POST['blog'];
- $ply=$_POST['ply'];
- $opa=$_POST['opa'];
- $alb =$_POST['alb'];
- $netto1= $koszt1* $cerem * $vat;
- $netto2=$koszt2 *$blog * $vat ;
- $netto3=$koszt3*$ply*$vat ;
- $netto4= $koszt4 *$opa*$vat;
- $netto5=$koszt5*$vat ;
- echo "<h3> Zamawiający: $imie $nazwisko<h3> " ;
- echo "<h3> Adres zamieszkania: $adres <h3> " ;
- echo<<<END
- <h2> Podsumowanie zamówienia <h2>
- <table border="1" cellpadding="10" cellspacing="0 ">
- <tr>
- <td>Podmiot</td><td>Ilość</td><td>Wartość netto</td> <td>Wartość Brutto</td>
- </tr>
- <tr>
- <td>Ceremonia Ślubna</td><td>$cerem</td> <td>(round($netto1 , 2)) </td><td>jhjhjh </td>
- </tr>
- <tr>
- <td>Błogosławieństwo </td><td>$blog</td>
- </tr>
- </tr>
- <tr>
- <td>Płyta</td><td>$ply</td>
- </tr>
- <tr>
- <td>Opakowanie</td>$opa<td></td>
- </tr>
- </tr>
- </tr>
- </tr>
- <tr>
- <td>Album</td><td>$alb</td>
- </tr>
- <tr>
- <td>SUMA</td><td></td>
- </tr>
- </tr>
- </tr>
- END;
- ?>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement