Relative Content

Tag Archive for javascriptphpjson

Building an admin panel to redirect users to a specific page when they submit a form

I’m building an admin panel to redirect users to a specific page when they successfully submit a form, first, they visit the website and an index.php file creates a unique folder for every visitor and recursively copies all the website content on that folder, along with retrieving some essential data of the user such (IP, Hostname, userAgent), then they go through the process to submit the form, when they submitted the form who’s on a page form.php a loading animation should appear until I choose the page to redirect every user based on a condition that I check manually, but on my code I got an error saying that no user found, I’m storing the data in a JSON file called visitors.php.
Below is the content of the files.
index.php