Re: [PHP] another easy cookie question - SOLVED

2001-09-21 Thread George Pitcher
ients to use. Thanks for everyone's suggestions. George, in Edinburgh - Original Message - From: "Richard Baskett" <[EMAIL PROTECTED]> To: "PHP General" <[EMAIL PROTECTED]> Sent: Friday, September 14, 2001 7:04 PM Subject: Re: [PHP] another easy cookie

Re: [PHP] another easy cookie question

2001-09-14 Thread Richard Baskett
The way I see it is that your script never has a chance to set the cookie plus you can not send headers after html, one other thing is that you have a ")" at the end of your setcookie function value so if you reformatted it this way: Untitled Document What that will do is as soon as it com

Re: [PHP] another easy cookie question

2001-09-14 Thread Chris Hobbs
George Pitcher wrote: > header("Location:index.php"); > setcookie("Cookievalue", "abcdefghijklmnopqrstuvwxyz0123456789", > time()+3600); A couple of things: First, I believe Location: must have a space after it, as well as a fully qualified URL (ie. http://wherver.com/index.php). Second, on

Re: [PHP] another easy cookie question

2001-09-14 Thread nate
t; <[EMAIL PROTECTED]> To: "Php-General" <[EMAIL PROTECTED]> Sent: Friday, September 14, 2001 3:51 AM Subject: RE: [PHP] another easy cookie question > First of all, before header() or setcookie() can't be any outputing code > (like html). > > And here if y

RE: [PHP] another easy cookie question

2001-09-14 Thread Niklas Lampén
First of all, before header() or setcookie() can't be any outputing code (like html). And here if you do: mailto:[EMAIL PROTECTED]] Sent: 14. syyskuuta 2001 12:47 To: [EMAIL PROTECTED] Subject: [PHP] another easy cookie question Hi all, This is what I have at the top of my php page

Re: [PHP] another easy cookie question

2001-09-14 Thread George Pitcher
No, absolutely nothing. George - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, September 14, 2001 11:34 AM Subject: Re: [PHP] another easy cookie question > Do you have any white spaces or carriage returns before your headers? If

Re: [PHP] another easy cookie question

2001-09-14 Thread nate
lmnopqrstuvwxyz0123456789", > time()+3600); > ?> > > > Untitled Document > > > > > Any suggestions? > > George > > - Original Message - > From: "Kelly Barrett" <[EMAIL PROTECTED]> > To: "George Pitcher" <[

Re: [PHP] another easy cookie question

2001-09-14 Thread George Pitcher
D]>; <[EMAIL PROTECTED]> Sent: Friday, September 14, 2001 11:31 AM Subject: Re: [PHP] another easy cookie question > Hi George, > You must output all headers (including cookies) before you output any > content. > > So, you just need to move your header and setcookie calls so

Re: [PHP] another easy cookie question

2001-09-14 Thread Kelly Barrett
Hi George, You must output all headers (including cookies) before you output any content. So, you just need to move your header and setcookie calls so they are above the and tags. e.g. Cheers, Kelly. > Hi all, > > This is what I have at the top of my php page (php-4.0.6-winNT). > > >

[PHP] another easy cookie question

2001-09-14 Thread George Pitcher
Hi all, This is what I have at the top of my php page (php-4.0.6-winNT). Untitled Document I get the following error. CGI Error The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are: ... and nothing else! Where am I goin