Hello and i hope that everyone is having a pleasant day,
i am wondering if anyone has had success with a header redirect using a named anchor as a variable? i have tried this today and it fails but maybe there is a reason why it isn’t working for me.
the named anchor works if i use a normal header
header("Location: ../#placeTobe");
the named anchor fails if i add a variable:
$jumper = "dynamicNameFromAformPost";
header("Location: ../#" . $jumper);
i feel like the value of the variable is not being parsed as, say, the result of an echo would be handled. Is it possible to accomplish this task?
is it better to append it to an entire header attached to a variable? of course, i could experiment but i’m seeking wisdom from experience.
Thank you.