I have a PHP code structure and, within it, I want to automatically call a $.get
AJAX to another PHP page.
Example:
<?php $cod = 1; $mod = 2; $text = 3;
como chamar um ajax automaticamente aqui, sem ter que clicar em botão algum, conforme exemplo abaixo:
echo "<script type='text/javascript'>
$.get('../print.php?cod =$cod&mod=$mod&text=text');
</script>"
//continuo com o código php
$bla = 1; $bla2 = 2; etc..... '
In other words, in the middle of my script PHP I want to call via AJAX another script that will send another routine and continue in my page routine mother.
I do not know if I was clear, but I need help.