WebsiteBaker 2.13.8 is now available!
R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WBhttps://forum.websitebaker.org/index.php/topic,32355.0.html
<script>function send(){var name = $("input#name").val();var email = $("input#email").val();$.ajax({ type: "POST", url: "send.php", //your mailing code is place on send.php data:'name='+ name'&email='+email, success: function(data){ $('#download').modal('hide'); window.location.href='uploads/yourpdf.pdf'; //your file location }); }}</script>
<a href="#" class="btn btn-primary" data-toggle="modal" data-target="#download">Download</a><!-- modal for download and contact --><div class="modal fade" id="download" role="dialog" ><div class="modal-dialog" ><div class="modal-content"><!-- Your contact form goes here ---><form method="post"><input type="text" id="name" placeholder="name"><input type="text" id="email" placeholder="email"><button onclick="send();">send</button></form></div></div></div>