Page 3 of 4 FirstFirst 1234 LastLast
Results 21 to 30 of 34
  1. #21
    Join Date
    Feb 2009
    Location
    London
    Posts
    935
    Tokens
    100
    Habbo
    Sameer!

    Latest Awards:

    Default

    Lol Jewish Bear got you there! He's the one that posted the correcdt code for it.

  2. #22
    Join Date
    Oct 2007
    Posts
    824
    Tokens
    71

    Latest Awards:

    Default

    Jewish Bear's code worked. Thanks once again.

    Is there anyways to resend header info? I need a way to set cookie info if a user has checked a remember me box but I can't because I can't find a way to do it without getting the headers already sent error.
    Vouches
    [x][x]

  3. #23
    Join Date
    Jun 2008
    Location
    United Kingdom
    Posts
    2,015
    Tokens
    568

    Latest Awards:

    Default

    Quote Originally Posted by Fazon View Post
    Jewish Bear's code worked. Thanks once again.

    Is there anyways to resend header info? I need a way to set cookie info if a user has checked a remember me box but I can't because I can't find a way to do it without getting the headers already sent error.
    Make sure there's no output before you attempt to send headers.

  4. #24
    Join Date
    Mar 2008
    Posts
    5,108
    Tokens
    3,780

    Latest Awards:

    Default

    Quote Originally Posted by Fazon View Post
    Jewish Bear's code worked. Thanks once again.

    Is there anyways to resend header info? I need a way to set cookie info if a user has checked a remember me box but I can't because I can't find a way to do it without getting the headers already sent error.
    Headers don't work like that.
    Post your entire code, that gives you the headers already sent error.

  5. #25
    Join Date
    Oct 2007
    Posts
    824
    Tokens
    71

    Latest Awards:

    Default

    It's pretty much something like:

    <?php

    session_start();

    if($_POST['rememberme']) {
    setcookie(blah blah blah)
    }

    ?>
    Vouches
    [x][x]

  6. #26
    Join Date
    Mar 2008
    Posts
    5,108
    Tokens
    3,780

    Latest Awards:

    Default

    Well there has to be output before that, or it wouldn't give you that error.

  7. #27
    Join Date
    Oct 2007
    Posts
    824
    Tokens
    71

    Latest Awards:

    Default

    Yeah there is.
    Vouches
    [x][x]

  8. #28
    Join Date
    Mar 2008
    Posts
    5,108
    Tokens
    3,780

    Latest Awards:

    Default

    Well that's what I want to see.. you can't have that outputting before you set it..

  9. #29
    Join Date
    Oct 2007
    Posts
    824
    Tokens
    71

    Latest Awards:

    Default

    Well then how would I set the cookie? How do other sites use a remember me feature?
    Vouches
    [x][x]

  10. #30
    Join Date
    Mar 2008
    Posts
    5,108
    Tokens
    3,780

    Latest Awards:

    Default

    Quote Originally Posted by Fazon View Post
    Well then how would I set the cookie? How do other sites use a remember me feature?
    They don't output before they set it maybe?

Page 3 of 4 FirstFirst 1234 LastLast

Posting Permissions

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