Advertisement
Guest User

Untitled

a guest
Sep 30th, 2016
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.23 KB | None | 0 0
  1. <?php
  2. if (isset($_GET)){
  3. $error_message = $_GET["error_message"];
  4. } else{
  5. $error_message = "";
  6. }
  7. ?><!DOCTYPE html>
  8. <!--
  9. To change this license header, choose License Headers in Project Properties.
  10. To change this template file, choose Tools | Templates
  11. and open the template in the editor.
  12. -->
  13. <html>
  14. <head>
  15. <meta charset="UTF-8">
  16. <title></title>
  17. <style>
  18. #error {
  19. color: red;
  20. font-weight: bold;
  21. }
  22. label {
  23. display: inline-block;
  24. width: 150px;
  25. font-weight: bold;
  26. }
  27. </style>
  28. </head>
  29. <body>
  30. <?php echo "<span id='error'>" . $error_message . "</span>"; ?>
  31. <form action="product_discount.php" method="post">
  32. <label>Product Description:</label>
  33. <input type="text" name="product_description"><br>
  34. <label>List Price:</label>
  35. <input type="text" name="list_price"><br>
  36. <label>Discount Percent:</label>
  37. <input type="text" name="discount_percent"><span>%</span><br>
  38. <label>&nbsp;</label>
  39. <input type="submit" value="Calculate Discount"><br>
  40. </form>
  41. </body>
  42. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement