this might sound weird 🙂
i want to “call” a file( test_2.php ) i.e execute the file like how it would have been when clicking on the following link:
<a href="home/test_2.php">click here</a> //this code is currently in test_1.php file
is there any method to do that?
I think what you mean is, when you click the link, you want that php to get executed, but you don’t want the page to change/reload.
Ajax is your friend here. If you are using jquery, just one line of javascript code will do it:
read more about this function at jQuery.get documentation.
Cheers!