If you export your report after selecting required drop down values, your report will be saved to Excel as it was filtered. You do not need any HTML code for this.
My question: How can I pass the variable values from those drop down boxes to my Query in BEx?
Why do you want to re-execute your query when you have already ouptut in the first screen shot?