How can I get a var from php and put it as a javascript var?
im not good with java...here is a popup script in java that works great but id like to pass some var's thru it..
<SCRIPT LANGUAGE="JavaScript">
<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! [url]http://javascript.internet.com[/url] -->
<!-- Begin
function topWindow(){
popup = window.open("user.php?titlename=Tech Chat&name=$user","","height=400,width=640,scrollbars=yes");
}
// End -->
</SCRIPT>
here is how I execute the java
$user = "test";
<a href="javascript:topWindow()">smurfy2002</a>
now how can I submit a var like $name to that window?
if you look at the java script code there is this
user.php?titlename=Tech Chat&name=$user
how can I get $user to pass thru the link to the window..
-Thanx