I have $var1 = user input and $var2 = user input
this is ok echo works fine
the problem is when i use
header('Location:' . $_SERVER['DOCUMENT_ROOT'] . '/folder/folder/file.php?var1='.$var1 .'&var2='. $var2 .');
I get errors and tryed echo with no luck
Any Sugustions
Thanks
exit(); // Stops the rest of the script.
is after header
Thanks Mohit that fixed errors but I get redirect back to same url and with 404 I would love to post all my code on page but with my skills ill be hacked to the end of the internet. LOL
I echo my variables before header and rem //header. Script echo variables out fine. When I dont rem header it sends me back to Script page not the header url page.
I take . $_SERVER['DOCUMENT_ROOT'] . out and replace with http://www.mysite.com it works fine
header('Location:../../folder/folder/file.php?var1='.$var1.'&var2='.$var2);
works like a charm
this is ok echo works fine
the problem is when i use
header('Location:' . $_SERVER['DOCUMENT_ROOT'] . '/folder/folder/file.php?var1='.$var1 .'&var2='. $var2 .');
I get errors and tryed echo with no luck
Any Sugustions
Thanks
exit(); // Stops the rest of the script.
is after header
Thanks Mohit that fixed errors but I get redirect back to same url and with 404 I would love to post all my code on page but with my skills ill be hacked to the end of the internet. LOL
I echo my variables before header and rem //header. Script echo variables out fine. When I dont rem header it sends me back to Script page not the header url page.
I take . $_SERVER['DOCUMENT_ROOT'] . out and replace with http://www.mysite.com it works fine
header('Location:../../folder/folder/file.php?var1='.$var1.'&var2='.$var2);
works like a charm