note 39754 added to function.setcookie
| From: | DaXmAn at rn2 dot php dot net | Date: | Mon, 09 Feb 2004 19:57:50 +0000 |
| Subject: | note 39754 added to function.setcookie | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-64906@lists.php.net to get a copy of this message | ||
i have a simle script:
<?
$nowybuton = stripslashes("<input type=button value=$nazwa
onClick=parent.location.href=\'http://$adreswww\'
style=\"font-family: Comic Sans MS; font-weight: normal; font-style: normal; font-size: 9pt;
font-variant: normal; font-stretch: normal; color: #000000\">");
setcookie("butonsy",$nowybuton,time()+3600);
echo "Buton prosto ze zmiennej:<br>";
echo $nowybuton;
echo "<br><br>";
echo "Button ze zmiennej HTTP_COOKIE_VARS[butonsy]<br>";
echo $HTTP_COOKIE_VARS[butonsy];
?>
why in line echo $HTTP_COOKIE_VARS[butonsy]; in output html are still \ chars?
----
Manual Page -- http://www.php.net/manual/en/function.setcookie.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+39754
Delete -- http://master.php.net/manage/user-notes.php?action=delete+39754&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+39754&report=yes
Search -- http://master.php.net/manage/user-notes.php