SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Thread: Cookie warning

  1. #1
    SitePoint Member
    Join Date
    Jan 2006
    Location
    Pakistan & Canada
    Posts
    14
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Cookie warning

    hi every body i have a page to set cookie. it is a very simple just used if codition that if the cookie is set then tel cookie is set if not then tell cookie not set
    but it give the warning below
    warning:cannot modify header information - headers already sent by (output started at c:\web\cookie\setcookie.php:1) in c:\web\cookie\setcookie.php on line 2.
    thanks for coperation in advance.
    <?php
    php code here
    ?>
    so this is the page and there is not any html
    Last edited by new-2-php; Apr 2, 2006 at 01:01. Reason: becasue no other html are sent before cookie

  2. #2
    SitePoint Wizard
    Join Date
    Mar 2001
    Posts
    3,537
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You can't have any html before setcookie().


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
  •