I have to sign-up users. For that, I have a sign-up page with a form, form validation and generating error messages. For uploading the user's data, I have created another file where I have to get the URL of the signup.php
file to ensure that users have successfully entered their data.
To get the URL of current file we can use:
http://$_SERVER['HTTP_HOST']$_SERVER['REQUEST_URI'];
How I can get the URL of signup.php
file in the other file?