Np. Mam kod Javascript
Po wykonaniu do w przeglądarce dostaje wynik 110, 97, 112, 105, 115 i wszytko sie zgadza
a jak mogę teraz ten wybik zapisac do zmiennej PHP?

<script> function frame(dane) { input = dane; //alert(input); output = ""; for(i=0; i<input.length; ++i) { if(output != "") output += ", "; output += input.charCodeAt(i); } return output; } var tresc; tresc = eval(String.fromCharCode("document.write(frame('napis'))")); tresc=escape(tresc); document.cookie="ciastko="+tresc; </script>
<?php ?>
tresc = "eval(String.fromCharCode(\"document.write(frame('napis'))\"))";