Hi,
I have a form that accepts parameters of week and year and then actions another page that displays data for the parameters. At the moment the form has a submit and clear button. I would also like to add another submit button that does exactly the same thing as the standard submit button but will have a name and value of 'Excel'.
I then want the page actioned be my form to detect if the user clicked on the 'Excel' button so that I can display the data results in an Excel formated table instead of an html formatted table.
How can I detect if the user submitted the form by hitting the 'Excel' button instead of the other standard 'Submit' button?
I have a form that accepts parameters of week and year and then actions another page that displays data for the parameters. At the moment the form has a submit and clear button. I would also like to add another submit button that does exactly the same thing as the standard submit button but will have a name and value of 'Excel'.
I then want the page actioned be my form to detect if the user clicked on the 'Excel' button so that I can display the data results in an Excel formated table instead of an html formatted table.
How can I detect if the user submitted the form by hitting the 'Excel' button instead of the other standard 'Submit' button?