Problems with cookies....

From: Date: Sat, 18 Aug 2001 03:55:35 +0000
Subject: Problems with cookies....
Groups: php.general 
Request: Send a blank email to php-general+get-63273@lists.php.net to get a copy of this message
Sveiki, php-general, I want to put cookies to know how I have to open window (new window or same window), but I'm making some mistake. Please help me. Here is the code.... <? $pav='nustatymai.php'; if ( $nustatymaslangas == 1 ) { setcookie("nustlangas", 1, time()+3600*24*30); } else { setcookie("nustlangas", 0, time()+3600*24*30); } if ( $nustatymaspastas == 1 ) { setcookie("nustpastas", 1, time()+3600*24*30); } else { setcookie("nustpastas", 0, time()+3600*24*30); } if ( $jau == 1 ){ header("Location: main.htm"); exit; } ?> <form action="<? echo $pav; ?>"> <input type="hidden" name="jau" value="1"> <SELECT name="nustatymaslangas"> <option value="#">--- Pasirinkite ---</option> <option value="0">Same Window</option> <option value="1">New Window</option> </select> <SELECT name="nustatymaspastas"> <option value="#">--- Choose ---</option> <option value="0">Same Window</option> <option value="1">New Window</option> </select> <input type="submit" value="Submit"> </form> ____________________________ 2001.08.18, šeštadienis Marius Pertravčius iCQ: #125733984 Lietuva@xxx.lt

« previous php.general (#63273) next »