Originally Posted by LearningCoder
Yup I really can't see why you are trying to include a file and then echo a value within the include statement. If you want to use another file to echo a value, you can do this:
THEN, within your page.php script, you can do this:
echo "$_GET variable not set.";
OR, do this:
$get = (isset($_GET['aid'])) ? $_GET['aid'] : "$_GET variable not set";
Does this help at all? Test it out and see what you think.
Thanks for the help but no it did not work.
The previous way I had it was in a link
http://www.example.com.page.php?aid=<?php echo $id; ?>
where $id; would pull the user id from the database and show certain information for that user on a new page ex: url output would have been http://example.com/page.php?aid=234
234 would be for user John D and show his information. Now I'm just trying to open it in a simple modal window by triggering the modal and within the modal body theres a php include of the url so the output would show the same information but I am having the issue of pulling the $id because it is already with <?php ?> and trying echoing the $id within the include only comes blank within the modal box body. A little winded writing but trying to give as much info as I can and thanks again for your help.