Advertisement
Guest User

Untitled

a guest
Nov 23rd, 2014
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.16 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <script>
  4. function Validatename() {
  5.  
  6. }
  7.  
  8. </script>
  9. <head>
  10. <link rel="stylesheet" href="FizzyStyle.css">
  11. </head>
  12. <h1> Fizzy Drink Order </h1>
  13.  
  14. <div style="float:left;"> <!-- Form Text -->
  15. First Name: </br></br>
  16. Address: <br></br><br></br><br></br></br>
  17. Phone Number: <br></br></br>
  18. Email Address: <br></br>
  19. Box Size: <br></br>
  20. Number of Boxes: <br></br>
  21. Total Price: <br></br></br>
  22. Delivery Option: <br></br>
  23. Price of Boxes: <br></br>
  24. Price of Postage: <br></br>
  25. Total Price: <br></br>
  26. I agree to the terms<br> and conditions:
  27. </div>
  28. <div> <!-- Form Boxes -->
  29. <form name="FizForm" onSubmit="Validate();" action="mailto:839193@swansea.ac.uk" method=post>
  30. <input type="text" placeholder="First Name" name="FirstName" required>
  31. <input type="text" placeholder="Second Name" name="SecondName" required></br></br>
  32. <input type="text" placeholder="Address Line 1" name="Add1" required><br></br>
  33. <input type="text" placeholder="Address Line 2" name="Add2"><br></br>
  34. <input type="text" placeholder="Address Line 3" name="Add3"><br></br>
  35. <input type="text" placeholder="Phone Number" name="Pnum"><br></br>
  36. <input type="text" placeholder="Email Address" name="Email"><br></br>
  37. <input name="radio" type="radio" checked>20 can box (&pound5)<input name="radio40" type="radio">40 can box (&pound10)<input name="radio60" type="radio">60 can box (&pound15)<br></br>
  38. <input type="number" min="1" max="10" name="BoxNum" required><br></br>
  39. <button type="button" onClick>Calculate Cost</button><input type="text" name="cost" readonly></br></br></br>
  40. <select name="DelOpt" required>
  41. <option name="E">Economy</option>
  42. <option name="P">Premium</option>
  43. <option name="ND">Next Day</option>
  44. <option name="ND9">Next Day(9am)</option>
  45. </select></br>
  46. <input type="text" name="BoxPrice" readonly></br><br>
  47. <input type="text" name="PostagePrice"readonly></br><br>
  48. <input type="text" name="TotalPrice" readonly></br><br>
  49. <input type="checkbox" name="TandC"><br></br>
  50. <input type="submit">
  51.  
  52. </form>
  53. </div>
  54. <script>
  55. function Validate() {
  56. if (document.FizForm.FirstName.value.length <= 1){
  57. alert("Please enter your full name");
  58. return false;
  59. }
  60. }
  61. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement