iCe_2x Posted September 25, 2003 Share Posted September 25, 2003 I have having trouble with the header command, if I put print "blah blah" it works, yet I cant get the header to do anything if ($password == $cpassword) { $url = "http://www.cchsbeta.com/custom.php?"."i=$userid"; header("Location: ".$url); exit; } Link to comment Share on other sites More sharing options...
0 pringlex Posted September 25, 2003 Share Posted September 25, 2003 That line would be better as $url = "http://www.cchsbeta.com/custom.php?i=" . $userid; And make sure your header is the first line of output from the script? Link to comment Share on other sites More sharing options...
0 blueghost Posted September 25, 2003 Share Posted September 25, 2003 i've never got header to work with putting a variable into the url. Just use html and meta-refresh Link to comment Share on other sites More sharing options...
Question
iCe_2x
I have having trouble with the header command, if I put print "blah blah" it works, yet I cant get the header to do anything
Link to comment
Share on other sites
2 answers to this question
Recommended Posts