I'm just wondering if there is another of calling functions in a different php file without making the app run strangley. So what I have got are a few forms without specifying their action.
<?php 1- checking for the fields 2- if they are not empty and so on, a function in functions.php will be called then users will be redirected from this page not from the functions.php because I am using some functions in different ways. ?> <form action="" method="post"> fields stuff </form>
when I redirect users from login.php to index.php, it adds a hash at the end of the url. E.g localhost/login.php#index.php or something like this.
Is there a way I can solve this easily without specifying action for forms? or specify action to trigger the right function maybe?