PHP create file for download without saving on server
Ultimate goal: I want to create a webpage where a user can enter information in forms. With that information I want to create a html file (below called test-download.html) by inserting the information given into a template and then force a download. Since I want to demonstrate this at an upcoming workshop where people will be using this at the "same time" I would like to not save the file on the server and just force the download. So far: I have this in my html file (test.html): <form action="test.php" method="post"> To file: <input type="text" name="tofile" /> <input type="submit" /> </form>