Advertisement
ujiajah1

form_modal.html

May 13th, 2016
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 3.45 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3.    <head>
  4.     <title>Fuckin bullshit</title>
  5.     <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6.  
  7.     <!-- Bootstrap core CSS -->
  8.     <link href="http://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.4/css/bootstrap.min.css" rel="stylesheet" media="screen">
  9.  
  10.  <style>
  11. .input-group[class*="col-"] {
  12.     padding-right: 15px;
  13.     padding-left: 15px;
  14.     }
  15.     </style>
  16.  
  17.       <script src="http://cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.2/html5shiv.js"></script>
  18.       <script src="http://cdnjs.cloudflare.com/ajax/libs/respond.js/1.4.2/respond.js"></script>
  19.   </head>
  20.  
  21. <body>
  22. <!-- Button to trigger modal --> <center><!-- Button to trigger modal -->
  23.     <button type="button" class="btn btn-success">
  24.     <a href="#myModal" style="color:#FFFFFF; font-height:bold" role="button" class="btn btn-custom" data-toggle="modal">Open Contact Form</a>
  25.     </button>
  26.     <!-- Modal -->
  27.     <div id="myModal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
  28.         <div class="modal-dialog">
  29.         <div class="modal-content">
  30.         <div class="modal-header">
  31.             <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
  32.             <h4 class="modal-title">Contact Me Jerk</h4>
  33.         </div>
  34.         <div class="modal-body">
  35.           <form class="form-horizontal" name="commentform" method="post" action="send_form_email.php">
  36.     <div class="form-group">
  37.         <label class="control-label col-md-4" for="first_name">First Name</label>
  38.         <div class="col-md-6">
  39.             <input type="text" class="form-control" id="first_name" name="first_name" placeholder="First Name"/>
  40.         </div>
  41.     </div>
  42.     <div class="form-group">
  43.         <label class="control-label col-md-4" for="last_name">Last Name</label>
  44.         <div class="col-md-6">
  45.             <input type="text" class="form-control" id="last_name" name="last_name" placeholder="Last Name"/>
  46.         </div>
  47.     </div>
  48.     <div class="form-group">
  49.         <label class="control-label col-md-4" for="email">Email Address</label>
  50.         <div class="col-md-6 input-group">
  51.         <span class="input-group-addon">@</span>
  52.             <input type="email" class="form-control" id="email" name="email" placeholder="Email Address"/>
  53.         </div>
  54.     </div>
  55.     <div class="form-group">
  56.         <label class="control-label col-md-4" for="comment">Question or Comment</label>
  57.         <div class="col-md-6">
  58.             <textarea rows="6" class="form-control" id="comments" name="comments" placeholder="Your question or comment here"></textarea>
  59.         </div>
  60.     </div>
  61.     <div class="form-group">
  62.         <div class="col-md-6">
  63.             <button type="submit" value="Submit" class="btn btn-custom pull-right">Send</button>
  64.         </div>
  65.     </div>
  66. </form>
  67.         </div><!-- End of Modal body -->
  68.         </div><!-- End of Modal content -->
  69.         </div><!-- End of Modal dialog -->
  70.     </div><!-- End of Modal -->
  71.     </center>
  72.    
  73.     <script>$('#myModal').modal('show')</script>
  74.    <!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
  75.     <script src="http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
  76.     <!-- Include all compiled plugins (below), or include individual files as needed -->
  77.     <script src="http://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.4/js/bootstrap.min.js"></script>
  78.   </body>
  79. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement