SitePoint Sponsor |
|
User Tag List
Results 1 to 2 of 2
Thread: Cookie warning
-
Apr 2, 2006, 01:30 #1
- 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 htmlLast edited by new-2-php; Apr 2, 2006 at 02:01. Reason: becasue no other html are sent before cookie
-
Apr 2, 2006, 01:46 #2
- Join Date
- Mar 2001
- Posts
- 3,537
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
You can't have any html before setcookie().
Bookmarks