To initiate file download after form submission

Hi! I have read this very good tip, but have a question.

I would like to implement the scenario where user has to fill some form, to submit this form and, based on the user’s input, I want to serve a file to him for download. So is there an option to initiate the download after form is submitted and business logic is run? If user’s browser blocks the download, so be it.

Can nobody suggest something?