loadRecord(vtlib_purify($_REQUEST['record'])); if(isset($_REQUEST['savemode']) && $_REQUEST['savemode'] == 'file') { $quote_id = vtlib_purify($_REQUEST['record']); $filepath='test/product/'.$quote_id.'_Quotes.pdf'; //added file name to make it work in IE, also forces the download giving the user the option to save $controller->Output($filepath,'F'); } else { //added file name to make it work in IE, also forces the download giving the user the option to save $controller->Output('Quotes.pdf', 'D'); exit(); } ?>