Get JavaScript variable value Using PHP?

tay_max_2005

New member
Hi, I would like to get the value of JavaScript array variable in a html file by using PHP.
Ive put some space cause yahoo screws up codes... =)
Example:

javascript.html
<html >
<head >
<script type='text/javascript'>
var _test = _test || [];
_test. push(['test121212']);
</ script>
</ head>

getvalue.php

I would like to extract the value of "_test" from the "javascript.html"
Maybe i wasnt so clear =(... Im not sending javascript values to the php im not talking about ajax or forms. in my case PHP is retriveing js variable value from a html file.
 
Back
Top