nfr Posted May 30, 2006 Share Posted May 30, 2006 Hello -I would like to collect details about an individual (Name, Company Name, Telephone Number, Email Address, Web Address, etc.) in a mySQL table and when then form is submitted, automatically download a file (or email) a PDF file containing the information they have requested. What would be the best way of going about this?Regards,Neil. Quote Link to comment https://forums.phpfreaks.com/topic/10774-automatic-download-of-file/ Share on other sites More sharing options...
poirot Posted May 30, 2006 Share Posted May 30, 2006 [code]<?php// We'll be outputting a PDFheader('Content-type: application/pdf');// It will be called downloaded.pdfheader('Content-Disposition: attachment; filename="downloaded.pdf"');// The PDF source is in original.pdfreadfile('original.pdf');?> [/code][a href=\"http://www.php.net/header\" target=\"_blank\"]http://www.php.net/header[/a] Quote Link to comment https://forums.phpfreaks.com/topic/10774-automatic-download-of-file/#findComment-40235 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.