Problem in assigning js value to php variable

noskcaj

New Member
How can i assign a javascript value to a php variable,This is what i want to do:\[code\]<?php $pag = echo "<script language ='javascript'>var pn = document.getElementById('t').value; document.write(pn); </script>";?> \[/code\]But getting error as: Parse error: syntax error, unexpected T_ECHOor is there any other way to do, but i want to assign that valur to php variable.can somebody help here?
 
Back
Top