I need to have a variable in my "header / Location" link. It should get the info from the link:
PHP Code:
galleries.php?id=320&folder=rass 
I have treid this:
PHP Code:
header("Location: galleries.php?folder=".$_ARRAY["folder"]."");
header("Location: galleries.php?folder=".$_GET["folder"]."");
header("Location: galleries.php?folder="<?=$array["folder"]?>");
header("Location: galleries.php?folder=".$array["folder"]);
header("Location: galleries.php?folder=$array['folder']");
But nothing Works. I need to use the below create the correct link:
PHP Code:
<?=$array["folder"]?>
If I in the HTML codes make a link like:
PHP Code:
galleries.php?folder=<?=$array["folder"]?>
Then it’s working and calls the variable “folder”

Any suggestions how to do this?