The thing is that i want to redirect to a page in my directory and even send a parameter like:
print.php?name=mike&age=20
AND it has to be redirected from middle of page not beginning, because the header() works only from beginning.
When i tried to use it in middle of my code it gave me an error saying that the headers were already sent.
Basically, i need a similar function as in Javascript:
location = "print.php?name=" + name + "&age=" + age;
something like that BUT in PHP.
Thanks again!