I need assistance in creating a function for my text box and button setup. Can someone please guide me on how to achieve this?
The user will be provided with a specific alphanumeric key from the website. They must input this key into the text box and then click on the button to access and download a specific file associated with that key. If the entered key matches the one assigned to a file, that file will be downloaded. While there are other files available, only the one paired with the correct key will be downloaded. Any help would be appreciated...
Here is my code:
<center>
<input class="keyBox" type="text" placeholder="Enter your download key">
<br><br>
<div class="text-center">
<button type="submit" class="btn btn-style btn-primary">Download</button>
</div>
</button>
</center>