for the life of my I dont know why I cant make this work anymore. I have used this extension in the past and has worked, but now it keeps opening up a page with the excel info in the body after clicking on submit button to download the file. ERROR: Warning: Cannot modify header information - headers already sent by (output started at /home/ahia/public_html/rsvp/dwzExport/ExcelExport.php:1) in /home/ahia/public_html/rsvp/dwzExport/ExcelExport.php on line 297
Warning: Cannot modify header information - headers already sent by (output started at /home/ahia/public_html/rsvp/dwzExport/ExcelExport.php:1) in /home/ahia/public_html/rsvp/dwzExport/ExcelExport.php on line 298
Warning: Cannot modify header information - headers already sent by (output started at /home/ahia/public_html/rsvp/dwzExport/ExcelExport.php:1) in /home/ahia/public_html/rsvp/dwzExport/ExcelExport.php on line 299
Here is your code at the top of the page:<?php //************************************ // http://www.DwZone-it.com // Import Export Tools - Excel Writer // Version 1.1.29 //************************************ $dwzExcel_RsAtt = new dwzExcelExport(); $dwzExcel_RsAtt->Init(); $dwzExcel_RsAtt->SetFileName("report.xls"); $dwzExcel_RsAtt->SetNumberOfRecord("ALL"); $dwzExcel_RsAtt->SetStartOn("ONLOAD", "export"); $dwzExcel_RsAtt->SetStringApex("false"); $dwzExcel_RsAtt->SetFieldLabel("true"); $dwzExcel_RsAtt->SetRecordset($RsAtt); $dwzExcel_RsAtt->addItem("FirstName", "AFName", "String"); $dwzExcel_RsAtt->addItem("LastName", "ALName", "String"); $dwzExcel_RsAtt->addItem("Email", "AEmail", "String"); $dwzExcel_RsAtt->addItem("Phone", "APhone", "String"); $dwzExcel_RsAtt->addItem("Guests", "AGuests", "String"); $dwzExcel_RsAtt->addItem("Comments", "AComnts", "String"); $dwzExcel_RsAtt->addItem("dwz_cname", "rsvp", ""); $dwzExcel_RsAtt->Execute(); //*********************** // Excel Writer //*********************** ?>
Here is the form with the submit button I use (this is the same way I have done it in the past):
<form name="export" action="" method="post"> <input name="export" type="submit" id="export" formmethod="POST" value="export"> </form>
Please help me on this - thank you in advance.
|
|
|