Not signed in (Sign In)

Vanilla 1.1.4 is a product of Lussumo. More Information: Documentation, Community Support.


    • CommentAuthorviane
    • CommentTimeNov 6th 2006
     
    I have a problem with

    header(location:mypage.php");

    sometimes it works but it shows error quite often.

    "header already sent"

    can anyone help me to get it solved?
  1.  
    check for the following.

    1) any blank line at the top of the page.
    2) have you used echo before header(......)?

    Let me know or paste your code here.

    thanks
    • CommentAuthorjiosis
    • CommentTimeNov 6th 2006
     
    yes, probably you have sent the page to users browser before your redirect command using echo, print or something like these.

    But Still you can redirect your page using a javascript redirection like :

    QUOTE

    $redirectq="<script LANGUAGE=\"JavaScript\">
    window.location=\"http://www.yourdomain.com/\";
    </script>";
    echo($redirectq);
    [/quote]

    Hope it helps ...
    • CommentAuthoradmin
    • CommentTimeNov 6th 2006
     
    Moved to Programming forum ...