Posted by shagy on 10/22/50 11:34
is it possible to set a with javascript then read that cookie with
$_COOKIE all within <script language='JavaScript'> tags for example:
<script language="JavaScript">
function test(param) {
var expiration = new Date();
expiration.setSeconds(expiration.getSeconds + 30);
document.cookie = "kae=" + param + ";" + "expires=" +
expiration.toGMTString() + ";path=/;";
alert(' <?php echo ($_COOKIE['kae']); ?> ');
}
should this be working?
The alert box doesn't appear at all
Any help would be appreciated.
shagy :-)
Navigation:
[Reply to this message]
|