D
D
Demon2014-07-05 13:48:57
JavaScript
Demon, 2014-07-05 13:48:57

Pass the value of getSession(data) to the value of the input ?

How to correctly pass the value of getSession(data) to the value of the input and display this input on the site page?

function getSession(data){ 
for(var i=0,code=data.match(/_dS\('(.+)'\)/i)[1],_i=code.length-1,session='';i<_i;i++){session+=String.fromCharCode(code.charCodeAt(i)-code.substr(_i,1))};return session.match(/\d+/g) 
}

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander, 2014-07-05
@Awake

and what is the problem? value=<? echo getSession($data) ?>
Maybe I forgot the quotes. Haven't written for a long time

T
Tolik, 2014-07-05
@Diel

pastebin.com/CF5qu2EA

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question