I am having an issue figuring out how to start my download box after the customer's download code has been validated. What I want to happen is the customer inputs their unique download code and after they submit, if their code is valid, there is a pop-up "save as" download box. I would like to do this without leaving the page they are currently on (if possible). I have the validations and everything else complete I just cant figure out how to start the download save as box, downloading a file that I have in an includes folder outside of the web root directory.

Any help would be great.