1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 2. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 3. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> 4. <head> 5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> 6. <title>Product Cost Calculator</title> 7. </head> 8. <body><!-- Script 4.1 - calculator.html --> 9. <div><p>Fill out this form to calculate the total cost:</p> 10. 11. <form action="handle_calc.php" method="post"> 12. 13. <p>Price: <input type="text" name="price" size="5" /></p> 14. 15. <p>Quantity: <input type="text" name="quantity" size="5" /></p> 16. 17. <p>Discount: <input type="text" name="discount" size="5" /></p> 18. 19. <p>Tax: <input type="text" name="tax" size="3" /> (%)</p> 20. 21. <p>Shipping method: <select name="shipping"> 22. <option value="5.00">Slow and steady</option> 23. <option value="8.95">Put a move on it.</option> 24. <option value="19.36">I need it yesterday!</option> 25. </select></p> 26. 27. <p>Number of payments to make: <input type="text" name="payments" size="3" /></p> 28. 29. <input type="submit" name="submit" value="Calculate!" /> 30. 31. </form> 32. 33. </div> 34. </body> 35. </html>