What I currently have...
I have an ADD RECORD page where I add new partner stores that I work with. After I fill out the fields and click Save, it saves the data to a MYSQL table.
My Goal...
I would like a new PHP file get created in my web directory (root is fine) using the contents of one of the fields on the ADD RECORD page. Additionally, I would like that file that gets created have preset content.
Here is an example: (with screenshots)
1) I'll create a new record. The 4th field called EDIT URL will be the input field I would like to use for the file name creation. Let's say I give it the name "edit_paint_store"
2) After click SAVE RECORD, a new file will be created in my web dir called "edit_paint_store.php"
3) Not only will it create the file with this name, but it will always include a template code I will use.
Hopefully this explains well enough and will be happy to provide any further details.



include 'template.php'and then you edit the template if anything needs to change