I thought this should be simple, but i can't seem to get it to work.
I'm trying to do a simple redirect to a page, but need to pass a variable.
I've tried a few things, but nothing seems to work.
here's what I've tried
and a bunch of other random attempts. but whenever i use a variable, i get an error eg. the page localhost/$url cannot be found.
So that lets me know that the variable is not being filled.
I'm trying to do a simple redirect to a page, but need to pass a variable.
I've tried a few things, but nothing seems to work.
here's what I've tried
Code:
header('Location: edit.php?sid=$sid'); // or $url = "edit.php?sid=$sid"; header('Location: $url'); // or header('Location: edit.php?sid=\$sid');
So that lets me know that the variable is not being filled.
Comment