Syntax problem with this short php code

bokreazotte

New Member
How should I write the \[code\]$location\[/code\] variable into the header line? Right now it finds nothing... Blank adress bar...Here's what I have so far:\[code\] $location='/ad?ad_id='.$id_nr; Header( "Location: $location" );\[/code\]BTW, this is on my computer, virtual server, the adress is absolute! It works without the \[code\]?ad_id=.$id_nr\[/code\] part!
 
Back
Top