
November 12th, 1999, 08:41 AM
|
|
Guest
|
|
Posts: n/a
Time spent in forums:
Reputation Power:
|
|
|
I want to use PHP to read the value in the cookie that was set by this CGI script :
cookie.cgi
<BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">code:</font><HR><pre>
#!/usr/bin/perl
print "Content-Type: text/htmln";
print "Set-Cookie: test123=hello; path=/~ritti/;nn";
[/quote]
I tried by using
<BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">code:</font><HR><pre>
<?php
echo $HTTP_COOKIE_VARS["test123"];
?>[/quote]
OR
<BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">code:</font><HR><pre>
<?php
echo $HTTP_COOKIE;
?>[/quote]
Both not work,.. Could anybody help me???
Thanks you so much
|