Skip to main content
Stack Overflow
  1. About
  2. For Teams

Timeline for Echo PHP variable from JavaScript?

Current License: CC BY-SA 4.0

10 events
when toggle format what by license comment
Apr 13, 2024 at 5:23 history edited Your Common Sense CC BY-SA 4.0
added 69 characters in body
Jan 4, 2010 at 10:01 comment added jrharshath @Camran detailed answer posted
Jan 4, 2010 at 9:56 vote accept Community Bot
Jan 4, 2010 at 9:55 comment added micahwittman PHP code will only be interpreted as such when the script file ends with an extension the web server expects to be PHP code: .php (other extensions are possible, but that's a different subject).
Jan 4, 2010 at 9:51 comment added user188962 @harshath.jr, pleace specify that! The extension is js, yes!
Jan 4, 2010 at 9:47 history undeleted micahwittman
Jan 4, 2010 at 9:46 history deleted micahwittman
Jan 4, 2010 at 9:46 comment added jrharshath what is the extension of your file? is it .js? if so, php will not work (by default)
Jan 4, 2010 at 9:44 comment added user188962 The second alerts exactly this to the alert-box: <?php echo "H";?>... I want the H to be alerted, or a variable preferrably... The first suggestion alerts only a blank alert-box!
Jan 4, 2010 at 9:42 history answered micahwittman CC BY-SA 2.5

AltStyle によって変換されたページ (->オリジナル) /