I want to know if it is possible to use a basic html / javascript form to input data and then when the submit button is clicked the result is the creation of a new html document on the web server. The initial form contents would be used to determine what data is added to the new html page when it is created. Presumably using PHP/MySQL. Thanks.
Share
JavaScript runs on the client, not the server, so it can’t create files directly. This would be done using a PHP script on the server that processes the form. It’s very similar to displaying a page based on the form data, but instead it writes to a file: