Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- if (isset($_GET)){
- $error_message = $_GET["error_message"];
- } else{
- $error_message = "";
- }
- ?><!DOCTYPE html>
- <!--
- To change this license header, choose License Headers in Project Properties.
- To change this template file, choose Tools | Templates
- and open the template in the editor.
- -->
- <html>
- <head>
- <meta charset="UTF-8">
- <title></title>
- <style>
- #error {
- color: red;
- font-weight: bold;
- }
- label {
- display: inline-block;
- width: 150px;
- font-weight: bold;
- }
- </style>
- </head>
- <body>
- <?php echo "<span id='error'>" . $error_message . "</span>"; ?>
- <form action="product_discount.php" method="post">
- <label>Product Description:</label>
- <input type="text" name="product_description"><br>
- <label>List Price:</label>
- <input type="text" name="list_price"><br>
- <label>Discount Percent:</label>
- <input type="text" name="discount_percent"><span>%</span><br>
- <label> </label>
- <input type="submit" value="Calculate Discount"><br>
- </form>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement