HI there I am working on a site that has an include() that needs to have a variable passed through it I was wondering if there is any way to do this.
<?php
$pageNum = 2;
include ("../header.php");
?>
when I check the variable number on the page this code comes from it is two, but when I do the same check on the included header.php $pageNum =1
So I am wondering is there any way to pass the $pageNum into the include(..header.php)