Doubts with the PHP Location header

-1

I have a database in that database I have an attribute called url where the url of each page are stored ..

What I want you know and if you can, is to put that URL in the Header

Example.

$Url=$fetched_row['Url'];

header("Location:$Url");

I would like to know if you can and how is the code. Greetings ...

    
asked by DanielDaniel 06.08.2018 в 18:26
source

1 answer

2

use urlencode would be something like:

$Url=urlencode($fetched_row['Url']);

header("Location:$Url");
    
answered by 06.08.2018 / 18:38
source