So basically I need my submit button to create a template site.
I mean totally new file.php with some default CSS styling and values from forms.
The file.php would be created automatically in my web folder when I hit submit button.
I know something like this can be done by loading content from database but that is not what I want.
I am not really sure how to do that. Whatever it takes, I am going to learn that, please help.