2
Next, I need to validate this form so that only after the person registers can they download the file. With the tag I can already have this validation but I was able to put to download only with the tag "anchor".
<section id="e-book">
<header>
<h3>Baixe nosso e-book</h3>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod<p>
</header>
<form id="for-banner" class="form-inline">
<div class="form-group">
<label for="exampleInputName2"></label>
<input type="text" class="form-control" id="exampleInputName2" placeholder="Nome Completo" required>
</div>
<div class="form-group">
<label for="exampleInputEmail2"></label>
<input type="email" class="form-control" id="exampleInputEmail2" placeholder="E-mail Corporativo" required>
</div>
<div>
<a href="/e-book/teste-ebook.pdf" download id="btn-ebook" type="submit" class="btn btn-default">Download</a>
</div>
</form>
</section>
And what was the script in Javascript you thought about using?
– Woss
actually thought better here, the button does it here already, and checks if the email is already registered in the database, need to know if the <button> tag of the html has to download also equal this <a tag>
– Vinicius Barbosa Campelo