You are here: cookies « PHP Programming Language « IT news, forums, messages
cookies

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация