SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Thread: redirect error

  1. #1
    SitePoint Enthusiast
    Join Date
    May 2009
    Posts
    33
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    redirect error

    why i can't redirect my page using the following code:
    header("location:myPage.php")
    Below are the error:
    Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\login-php.php:9) in C:\xampp\htdocs\login-php.php on line 75

    I'm testing it under localhost.

  2. #2
    SitePoint Wizard
    Join Date
    Nov 2005
    Posts
    1,191
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You've already sent something to the browser, white space counts.

  3. #3
    From space with love silver trophy
    SpacePhoenix's Avatar
    Join Date
    May 2007
    Location
    Poole, UK
    Posts
    5,014
    Mentioned
    103 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by gen2000 View Post
    why i can't redirect my page using the following code:
    header("location:myPage.php")
    Below are the error:
    Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\login-php.php:9) in C:\xampp\htdocs\login-php.php on line 75

    I'm testing it under localhost.
    Check login-php.php from the top, to the end of line 9.
    Community Team Advisor
    Forum Guidelines: Posting FAQ Signatures FAQ Self Promotion FAQ
    Help the Mods: What's Fluff? Report Fluff/Spam to a Moderator


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •