Jump to content


Photo

header error


  • Please log in to reply
4 replies to this topic

#1 sparkicks

sparkicks
  • New Members
  • Pip
  • Newbie
  • 3 posts

Posted 06 April 2006 - 04:12 PM

im trying to redirect people when the login is varified but it keeps coming up with this
Warning: Cannot modify header information - headers already sent by (output started at c:\web\htdocs\validate.php:5) in c:\web\htdocs\validate.php on line 22
bare with me as i have only started php a day or 2 ago

line 22 header('location: ogin_sucessfull.php');
i have tried with " or ' with my full addy and with just the page any sugestions would be apreciated

#2 trq

trq
  • Staff Alumni
  • Advanced Member
  • 31,041 posts

Posted 06 April 2006 - 04:23 PM

Did you read the sticky thread at the top of this forum?

#3 sparkicks

sparkicks
  • New Members
  • Pip
  • Newbie
  • 3 posts

Posted 06 April 2006 - 04:26 PM

no and after reading it im not in any position better then i was... i didnt write to the header b4 that....

#4 trq

trq
  • Staff Alumni
  • Advanced Member
  • 31,041 posts

Posted 06 April 2006 - 04:58 PM

Any output. eg, call to echo, html, whitespace will send headers. Check you have no white spce before your opening <?php tags.

#5 sparkicks

sparkicks
  • New Members
  • Pip
  • Newbie
  • 3 posts

Posted 06 April 2006 - 05:22 PM

got it thanks i didnt realise that that included <html> tag




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users