[PHP] cookie question

2003-07-03 Thread David R
Hello,
I have a cookie question.

I have the following code is a file called tc.php



I have no problem retrieving the value cookie value ( 123 ) on my local
machine but when I post to the internet I can't get the cookie value.

Any ideas why?

Thanks.
David R



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] cookie question

2003-07-03 Thread David R
I have never read anything about a production server domain. How do I set
the cookie for it?
Thanks.
David R


"Leif K-Brooks" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> David R wrote:
>
> >Hello,
> >I have a cookie question.
> >
> >I have the following code is a file called tc.php
> >
> > >global $HTTP_POST_VARS, $HTTP_COOKIE_VARS, $settings, $sql ;
> >$val="123";
> >setcookie ("auth", $val , time() + 3600);
> >$cookie = $HTTP_COOKIE_VARS['auth'];
> >echo "cookie is: $cookie";
> >?>
> >
> >I have no problem retrieving the value cookie value ( 123 ) on my local
> >machine but when I post to the internet I can't get the cookie value.
> >
> >Any ideas why?
> >
> Did you set the cookie for the production server domain?  Cookies for
> your local machine won't still be there once you upload, you know.
>
> --
> The above message is encrypted with double rot13 encoding.  Any
unauthorized attempt to decrypt it will be prosecuted to the full extent of
the law.
>
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] cookie question

2003-07-04 Thread David R
I tried it that way, and variations on it. I still have had no luck. Any
other ideas?
Thanks again
David R
Thanks for you he
"Boaz Yahav" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
Try

setcookie("auth","$val",time() + 3600,"/",".avenew.com");


also look here : http://examples.weberdev.com/get_example.php3?count=67

Sincerely

berber

Visit http://www.weberdev.com/ Today!!!
To see where PHP might take you tomorrow.


-Original Message-
From: David R [mailto:[EMAIL PROTECTED]
Sent: Friday, July 04, 2003 9:44 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] cookie question


I have never read anything about a production server domain. How do I
set the cookie for it? Thanks. David R


"Leif K-Brooks" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> David R wrote:
>
> >Hello,
> >I have a cookie question.
> >
> >I have the following code is a file called tc.php
> >
> > >global $HTTP_POST_VARS, $HTTP_COOKIE_VARS, $settings, $sql ;
> >$val="123";
> >setcookie ("auth", $val , time() + 3600);
> >$cookie = $HTTP_COOKIE_VARS['auth'];
> >echo "cookie is: $cookie";
> >?>
> >
> >I have no problem retrieving the value cookie value ( 123 ) on my
> >local machine but when I post to the internet I can't get the cookie
> >value.
> >
> >Any ideas why?
> >
> Did you set the cookie for the production server domain?  Cookies for
> your local machine won't still be there once you upload, you know.
>
> --
> The above message is encrypted with double rot13 encoding.  Any
unauthorized attempt to decrypt it will be prosecuted to the full extent
of the law.
>
>



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] window.open problem

2003-11-18 Thread David R
I am using php and mysql and am having difficulty using window.open () . I
have cut the code down to the basics.
Why does a new window not open?
Thanks.
-David r



function boo() {
  window.open ("www.google.com");
}




  why does no window open?



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] window.open problem

2003-11-18 Thread David R
My apologies for posting to the php group. I thought that perhaps using
javescript together with php was causing the problem.

btw I have no "pop-up blockers" running.

-david r


"David Otton" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> On Tue, 18 Nov 2003 16:48:20 +0200, you wrote:
>
> >I am using php and mysql and am having difficulty using window.open () .
I
> >have cut the code down to the basics.
> >Why does a new window not open?
>
> This is a model request for help - you've removed all code that isn't
> directly related to the problem, you've written a test script, and your
> question is succinct.
>
> Unfortunately, it's not about PHP.
>
> Having said that... maybe you should turn your pop-up blocker off while
> testing pop-ups?
>
> (This is one of the myriad reasons why pop-ups are a bad design decision,
> BTW.)
>
> >  window.open ("www.google.com");
> window.open ("http://www.google.com/";);

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php