View Full Version : php variable in javascript function

12-06-2003, 07:50 PM
what are the possible ways of accessing a php variable from within a javascript function?

12-07-2003, 02:05 AM
theres only 1 way , echo the variable (or the whole javascript)

document.write('<?php echo $_SERVER['PHP_SELF'];?>') ;

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum