Can I please have some help to call a PHP file via Javascript when an HTML page has successfully loaded.
Here is my code:
<script class="code" type="text/javascript">
$(document).ready(function(){
//Call fb_marketing.php
});
</script>
The name of the PHP file is ‘fb_marketing.php’. Can I please have some help to get this code working?
Thanks in advance
You can call this file in AJAX as Musa said. Here is a sample code that tells what I mean:
In this code, #div calls the place that you want to put your PHP file. You can use
thisinstead of'#div'.