On a specific event, you need to perform an AJAX request from the init.php file. How to do it?
- An AJAX request cannot be executed from a php file, since php files are located and executed on the server, and AJAX requests are sent from the browser with javascript code. - Visman
- Ie, through a redirect only it turns out? Upon the event, we transfer the user to a page with a form, where we execute $ ('form'). Submit ()? There is no other option? I would not like the user to show an intermediate page. - Sergey
|