How would I call a PHP Method/function from jQuery ajax. Is this even possible? If it is not possible in jquery, is it possible in plain javascript? I have searched the web trying to find the answer but no site I could find was helpful. Would I need to make an ajax request to another php file, set a session variable dedicated to this and then make the other ajax request and in the requested php file, use the session data to perform the operation of am I over thinking this? Thanks for any help possible!
Share
very simply,
jquery:
PHP:
for advanced:
use this jquery to run php:
and write this code in php: