I have variable in the parent document eg.
$var = 'blah';
Then a div is populated with a Jquery AJAX call and that file has the line.
<?php echo $var; ?>
At the moment I am getting
Notice: Undefined variable:
How can I resolve this.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Is your $var in the same php as the jQuery? You need to echo the $var from the php file that you initialized it in.
For Example:
A.php
B.php