I am trying to pass a variable from page 1 to page 2 using an call so I can use the variable on page 2 with $_GET. However, I never get to page 2 because what I think is my variable is being appended to the file name.
<?php $url = '\.\./catpg.php?catid='.($row_categories['CategoryID']); ?> '<li><a href="<?php echo ($url); ?>" name="AllSubs"> See All <?php echo($row_categories['CategoryName']); ?></a></li>
When the link is clicked, the browser looks for catpg.php?catid=1. This tells me I m getting the correct id from my query, but I can’t get the page “catpg.php” to load, so I can use the variable. I have fussed with this for 2 days. Any help would be most appreciated. (No live website, just testing at this point, and the directory http://localhost/catpg.php is correct.)