Hi guys, Is there a way to create a html page as a result of a php form, that are then offered to the user to download after submitting? Something like a PHP script that writes config files, except the file it writes is downloaded not written to the server. Cheers
If I understand your question correctly, all you would have to do is configure your .htaccess file to parse PHP in HTML files, then simply display (via POST) and manipulate the form variables to your liking. AddHandler application/x-httpd-php .htm .html Code (.htaccess):
You could write it to a directory on the web server and then delete it after it is downloaded. Or maybe set up a Cron job to clean up the directory every so often.