Advertisement
Guest User

data entry form

a guest
May 5th, 2016
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.11 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1">
  6. <meta http-equiv="x-ua-compatible" content="ie=edge">
  7. <title>My Example</title>
  8.  
  9. <!-- CSS -->
  10. <style>
  11. .myForm {
  12. font-family: "Lucida Sans Unicode", "Lucida Grande", sans-serif;
  13. font-size: 0.8em;
  14. width: 20em;
  15. padding: 1em;
  16. border: 1px solid #ccc;
  17. }
  18.  
  19. .myForm * {
  20. box-sizing: border-box;
  21. }
  22.  
  23. .myForm fieldset {
  24. border: none;
  25. padding: 0;
  26. }
  27.  
  28. .myForm legend,
  29. .myForm label {
  30. padding: 0;
  31. font-weight: bold;
  32. }
  33.  
  34. .myForm label.choice {
  35. font-size: 0.9em;
  36. font-weight: normal;
  37. }
  38.  
  39. .myForm input[type="text"],
  40. .myForm input[type="tel"],
  41. .myForm input[type="email"],
  42. .myForm input[type="datetime-local"],
  43. .myForm select,
  44. .myForm textarea {
  45. display: block;
  46. width: 100%;
  47. border: 1px solid #ccc;
  48. font-family: "Lucida Sans Unicode", "Lucida Grande", sans-serif;
  49. font-size: 0.9em;
  50. padding: 0.3em;
  51. }
  52.  
  53. .myForm textarea {
  54. height: 100px;
  55. }
  56.  
  57. .myForm button {
  58. padding: 1em;
  59. border-radius: 0.5em;
  60. background: #eee;
  61. border: none;
  62. font-weight: bold;
  63. margin-top: 1em;
  64. }
  65.  
  66. .myForm button:hover {
  67. background: #ccc;
  68. cursor: pointer;
  69. }
  70. </style>
  71.  
  72. </head>
  73. <body>
  74.  
  75. <form class="myForm" method="get" enctype="application/x-www-form-urlencoded" action="/html/codes/html_form_handler.cfm">
  76.  
  77. <p>
  78. <label>Name
  79. <input type="text" name="customer_name" required>
  80. </label>
  81. </p>
  82.  
  83. <p>
  84. <label>Phone
  85. <input type="tel" name="phone_number">
  86. </label>
  87. </p>
  88.  
  89. <p>
  90. <label>Email
  91. <input type="email" name="email_address">
  92. </label>
  93. </p>
  94.  
  95. <fieldset>
  96. <legend>Which taxi do you require?</legend>
  97. <p><label class="choice"> <input type="radio" name="taxi" required value="car"> Car </label></p>
  98. <p><label class="choice"> <input type="radio" name="taxi" required value="van"> Van </label></p>
  99. <p><label class="choice"> <input type="radio" name="taxi" required value="tuktuk"> Tuk Tuk </label></p>
  100. </fieldset>
  101.  
  102. <fieldset>
  103. <legend>Extras</legend>
  104. <p><label class="choice"> <input type="checkbox" name="extras" value="baby"> Baby Seat </label></p>
  105. <p><label class="choice"> <input type="checkbox" name="extras" value="wheelchair"> Wheelchair Access </label></p>
  106. <p><label class="choice"> <input type="checkbox" name="extras" value="tip"> Stock Tip </label></p>
  107. </fieldset>
  108.  
  109. <p>
  110. <label>Pickup Date/Time
  111. <input type="datetime-local" name="pickup_time" required>
  112. </label>
  113. </p>
  114.  
  115. <p>
  116. <label>Pickup Place
  117. <select id="pickup_place" name="pickup_place">
  118. <option value="" selected="selected">Select One</option>
  119. <option value="office" >Taxi Office</option>
  120. <option value="town_hall" >Town Hall</option>
  121. <option value="telepathy" >We'll Guess!</option>
  122. </select>
  123. </label>
  124. </p>
  125.  
  126. <p>
  127. <label>Dropoff Place
  128. <input type="text" name="dropoff_place" required list="destinations">
  129. </label>
  130.  
  131. <datalist id="destinations">
  132. <option value="Airport">
  133. <option value="Beach">
  134. <option value="Fred Flinstone's House">
  135. </datalist>
  136. </p>
  137.  
  138. <p>
  139. <label>Special Instructions
  140. <textarea name="comments" maxlength="500"></textarea>
  141. </label>
  142. </p>
  143.  
  144. <p><button>Submit Booking</button></p>
  145.  
  146. </form>
  147.  
  148. </body>
  149. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement