I probably should have put this entry in the newbie section. I looked at the com tags, bastien, but I have no clue what to do with them.
I also found a script that generates either an Excel (.xls) or a Word (.doc) file. I want to give users the option to download their results in either format. The script works fine for .xls files but does not save the table format for .doc files. Also, if I use two submit buttons (one for Word and one for Excel), the input for the first button listed in the php page takes precedence--even if that button is not clicked.
So, I split the script into two parts and made two separate php pages. It still doesn't seem to matter. When either button is clicked, the page appears to process the input associated with whichever button I list first on the php page that calls the script. I put the Excel button first, click the Excel button or the Word button (which is set up to <FORM method="Get" action="php_doc_gen.php">) and I get the Excel format. I put the Word button first, save the page, click the Word button or the Excel button (which is set up to <FORM method="Get" action="php_xls_gen.php">) and I get the Word format.
Any ideas?
Thanks!
Tim