...

View Full Version : php variable in javascript function



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

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

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



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum