Advertisement
Guest User

Untitled

a guest
Nov 13th, 2019
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4.     <meta charset="utf-8"/>
  5.     <title>Reservation - Bussline</title>
  6.     <script>
  7.         function bookmytrip()
  8.         {
  9.            const print = document.getElementById("print");
  10.          const FirstName = document.getElementById("FirstName").value;
  11.          const LastName = document.getElementById("LastName").value;
  12.            
  13.            
  14.            
  15.             print.innerHTML = ("Thank you " + FirstName + " " + LastName + " For your reservation with us. <br> ")
  16.            
  17.            
  18.         }
  19.    
  20.    
  21.    
  22.    
  23.    
  24.     </script>
  25.     <body>
  26.        
  27.         <style>
  28.             header{
  29.                  font-family: candara;
  30.             background-color: darkblue;
  31.             color: white;
  32.             text-align: center;
  33.             }
  34.            
  35.         form{
  36.             font-family: candara;
  37.             background-color: darkblue;
  38.             color: white;
  39.             text-align: center;
  40.         }
  41.             footer{
  42.                 font-family: sans-serif;
  43.                 background-color: lightblue;
  44.                 color: black;
  45.                 font-style: italic;
  46.             }
  47.             </style>
  48.    
  49.             <header>
  50.             <h3>BUSLINE OF THE CITY</h3>
  51.                 </header>
  52.              <form>
  53.             <h1> Fill out the reservation form</h1>
  54.         <p>First Name: <input type="text" id="FirstName" name ="user_name"> </p>
  55.         <p>Last Name: <input type="text" id="LastName" name ="user_name"/></p>
  56.            
  57.            
  58.              <p>Arrival City:</p>
  59.          <p>St Louis ($40) <input type="radio" id="stlouis" name ="Radyes"></p>
  60.          <p>Milwaukee ($20) <input type ="radio" id="mil" name="Radyes"></p>
  61.             <p>Detroit ($35) <input type ="radio" id="detroit" name="Radyes"></p>
  62.            
  63.             <p>Hotel Choice:</p>
  64.          <p>Economy ($50/day) <input type="radio" id="economy" name ="Radyes"></p>
  65.          <p>Standard ($70/day) <input type ="radio" id="standard" name="Radyes"></p>
  66.         <p>Upscale ($120/day) <input type ="radio" id="upscale" name="Radyes"></p>
  67.            
  68.             <p>Number of travelers:
  69.             <select>
  70.                 <option> 1 </option>
  71.                  <option> 2 </option>
  72.                  <option> 3 </option>
  73.                  <option> 4 </option>
  74.                  <option> 5 </option>
  75.                  <option> 6 </option>
  76.             </select>            
  77.             </p>
  78.            
  79.               <p>Number of days:
  80.             <select>
  81.                 <option> 2 </option>
  82.                  <option> 3 </option>
  83.                  <option> 4 </option>
  84.                  <option> 5 </option>
  85.                  <option> 6 </option>
  86.                   <option> 7 </option>
  87.             </select>            
  88.             </p>
  89.            
  90.             <p>Wifi ($10) <input type=checkbox id="wifi"> </p>  
  91.             <p>Fully-reclining seat ($20) <input type=checkbox id="fullseat"> </p>  
  92.            
  93.             <p>Meal choice: </p>
  94.         <p>None <input type="radio" id="none" name ="Radyes"></p>
  95.         <p>Snack ($5) <input type="radio" id="snack" name ="Radyes"></p>
  96.         <p>Full meal ($10) <input type="radio" id="fullmeal" name ="Radyes"></p>
  97.             <p> Special Requests: <textarea name="comments" type="text" id="splreq" col="25" rows ="5" ></textarea></p>
  98.            
  99.             <p> <input type="button" id="button" value="Book My Trip" onclick= "bookmytrip()"> </p>            
  100.            
  101.             <p id="print"></p>
  102.         </form>
  103.         <footer>
  104.      <h6> 3746 Harvard Street</h6>
  105.             <h6>773-987-0000</h6>
  106.   </footer>
  107.  
  108.     </body>
  109. </head>
  110. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement