在表单提交时使用名为字段的页面名称创建php页面

i would like to know how to get a page duplicated upon form submission.

For example, i am registering something on a form and upon the submission on the form, the php page gets called and information on the page is saved in the database (this works fine). There are several field in this form and one named "Acronym".

Upon submission, i want a page(present in the htdoc folder as i am using XAMPP) to be duplicated with the Acronym field as the name of the new php page

Anyone can give me some information about how to do this as i have no idea how to

Thank you

Generally, websites don't create new pages for every user, but store information in a database and retrieve them. But if you want to create a new page:

$file = $_POST['Acronym'].".php"; $open = fopen($file, "w"); fwrite($open, $content); fclose($open)

Enter the contents of the page in $content.