Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

riddhi's avatar

making a ajax call from a php file to another another php file

I have a welcome.blade.php in the vew folder which contains a function having a AJAX call in it , which is posting data to another php file (map_process.php) also in view folder . But I am not able to make that call reach map_process.php file . Kindly help , I am stuck at this .

0 likes
1 reply
zachleigh's avatar

Are you posting to a file or to a route? Usually, you would post to a route and then in routes.php you would define that route and its controller method. From the controller you could send the data to map_process.

Please or to participate in this conversation.