Isn't this how you turn a php var into a js var?if so, why does the php code display in an alert() instead of the value of $_SESSION['url']?Code:var url = "<?php echo $_SESSION['url'] ?>";
| SitePoint Sponsor |



Isn't this how you turn a php var into a js var?if so, why does the php code display in an alert() instead of the value of $_SESSION['url']?Code:var url = "<?php echo $_SESSION['url'] ?>";


Programming Group Advisor
Reference: JavaScript, Quirksmode Validate: HTML Validation, JSLint
Car is to Carpet as Java is to JavaScript
Bookmarks