Here's what I'm trying to achieve: I have a set of PDF files stored in a single directory on the server. Users should be able to enter the id of a file (filename without the extension) and click the Display button. The button should load another page with the file id as a part of the URL. The corresponding PDF file would then be displayed.
What is the simplest way to get this behavior? The PDF files are displayed using a shortcode. How can I dynamically generate the shortcode with the right file path? Any suggestions would be greatly appreciated.