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

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

Required fields*

Get variable from PHP to JavaScript [duplicate]

I want to use a PHP variable in JavaScript. How is it possible?

Answer*

Draft saved
Draft discarded
Cancel
4
  • 2
    I think you just confused him. I don't think he was expecting anything nearly that complex. Commented Jan 6, 2009 at 9:26
  • Yes, I see your point — maybe he could've tried to explain more what he wanted. Commented Jan 6, 2009 at 10:40
  • 1
    I'm not sure including the entire library to use the JSON function is the best way to go. There are a lot of alternatives to jQuery for that particular task. Commented Jan 6, 2009 at 11:58
  • You're right. A lightweight library that just wraps the xml-http talking would be neat. Commented Jan 6, 2009 at 13:22

default

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