<?php
$pid = array('3','59','11','15','93','16','17','20','30','4');
setcookie("expanded_rows", join(",", $pid) ,time()+3600);
?>
This creates a cookie with these strange chars:
3%2C59%2C11%2C15%2C93%2C16%2C17%2C20%2C30%2C4
Any idea what it is i'm doing wrong?
cheers,
Samuel van Laere
__________ Informatie van ESET NOD32 Antivirus, versie van database viruskenmerken 5308 (20100724) __________
Het bericht is gecontroleerd door ESET NOD32 Antivirus.
Hi Samuel,
2C is the ASCII code for a comma, and %2C is a comma in URL encoding.
Does that help?
Cheers
Peter
Absolutely nothing. That's how most non-alphanumeric characters are sent.
Why does it matter? They are converted back when you get the cookie again.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstu...@attglobal.net
==================
Thanks Jerry,
indeed the cookie works I did not know it got converted.
cheers,
Samuel
__________ Informatie van ESET NOD32 Antivirus, versie van database viruskenmerken 5309 (20100724) __________