Hello .. I have a problem in which I am encountering difficulties, perhaps due to my lack of knowledge in JS.
I have a JavaScript function that calls a PHP file:
<script type='text/javascript'>
...
events: "events.php"
</script>
When this PHP file is called (events.php) everything that needs to happen happens. A search is performed on this file and returned a JSON ... Ok ... my question is this:
I need to call the file 'events.php' to pass a variable as a parameter, to get its value inside the called file. How can I do this? How to pass a php variable as a parameter in the JS function that calls a PHP file?