RE: [PHP-WIN] How setcookie and header can be used together?
| From: | Blaster | Date: | Thu, 28 Dec 2000 22:36:10 +0000 |
| Subject: | RE: [PHP-WIN] How setcookie and header can be used together? | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-4720@lists.php.net to get a copy of this message | ||
You forgot the $ sign in front of filename...
-----Original Message-----
From: nastaran kashani [mailto:nkashani2000@yahoo.com]
Sent: Thursday, December 28, 2000 17:06
To: php-windows@lists.php.net
Subject: [PHP-WIN] How setcookie and header can be used together?
Hi,
Happy New Year,
I want to redirect browser to a special page,and also
send some variable quantities to this page.I am
working on "Windows NT 4.0" System,and I used the
following code:
Current File :
File1.php
------------
<?php
$filename="http://myserver/1.wav";
//File 1.wav is in the path "c:/inetpub/wwwroot/1.wav"
setcookie("filename",$filename,time()+1800,"http://myserver/File2.php");
header ("Location: http://myserver/File2.php");
?>
------------
Destination File:
File2.php
------------
<?php
echo "<embed console=smallconsole src=\" filename\"
width=70 height=25>";
?>
------------
But I received this error:
Undefined variable filename in the file
c:/inetpub/wwwroot/File2.php line 2
Do you know what is wrong here?
And I don't know where I should delete a cookie.
Thank You !
Atieh Kashani
__________________________________________________
Do You Yahoo!?
Yahoo! Photos - Share your holiday photos online!
http://photos.yahoo.com/
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net
For additional commands, e-mail: php-windows-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net