I have a form that creates a new link on my navigation bar, and redirects to the view of all the links which in this cass is admin_page_view.php.
This is one of the inputs below, here i type the link of the page, for example, sitemap.php… and it gets stored in my database and uses the data sitemap.php as one of the links on the navigation bar.
What i would like to do is, when i create a new page, i need php to create a new php file based on the name inside this input area.
so for example, im creating a new page called Login… and below ill give the page the link of Login.php…(Clicks create) and it will appear in my navigation bar as Login which goes to login.php
is there anyway i can use php to create the actual file if it doesnt exist upon form submission?
[php]