How setcookie and header can be used together?

From: Date: Thu, 28 Dec 2000 22:08:19 +0000
Subject: How setcookie and header can be used together?
Groups: php.general 
Request: Send a blank email to php-general+get-32167@lists.php.net to get a copy of this message
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/

« previous php.general (#32167) next »