Advertisement
Guest User

Untitled

a guest
Nov 13th, 2019
108
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>Join Mailing list - Bussline</title>
  6.     <style>
  7.         body{
  8.             font-family: candara;
  9.             background-color: darkblue;
  10.             color: white;
  11.             text-align: center;
  12.         }
  13.    
  14.    
  15.    
  16.    
  17.     </style>
  18.     <script>
  19.     function mailconfirm()
  20.         {
  21.             var info = document.getElementById("info");
  22.             var FirstName = document.getElementById("FirstName").value;
  23.             var LastName = document.getElementById("LastName").value;
  24.             var EmailAddress = document.getElementById("EmailAddress").value;
  25.            
  26.            
  27.             info.innerHTML = ("Thank you " + FirstName + " " + LastName + " for joining our maling list. Your email that you gave us is " + EmailAddress +".")
  28.            
  29.         }
  30.    
  31.    
  32.    
  33.     </script>
  34.     <body>
  35.         <h1> Join in our mailing list today!</h1>
  36.        
  37.         <p>First Name: <input type="text" id="FirstName" name ="first_name"> </p>
  38.         <p>Last Name: <input type="text" id="LastName" name ="last_name"/></p>
  39.    
  40.          <p>Email Address: <input type="text" id="EmailAddress" name ="email_address"/></p>
  41.       <p><input type="button" class="button" value="Submit" onclick="mailconfirm()"></p>
  42.  
  43.        
  44.      <p id="info"></p>  
  45.     </body>
  46. </head>
  47. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement