How do I make a header for a page that is one level above, eg: I have the following tree of directories, I want to make a header of validarLogin.php for welcomePage.php? I tried to use a ../ to access the views folder and it did not work.
controller --- validarCadastro.php --- validarLogin.php views --- index.php --- welcomePage.php
Redirect code:
$string = http_build_query($consulta);
$url = 'Location:'.'../views/welcomePage.php?'.$string;
header($url);