php in javascript? -


मुझे javascript के अंदर कुछ php कोड होना चाहिए

  & lt; script ... & gt; ; & Lt;? Php इको "..."; ? & Gt; & Lt; / स्क्रिप्ट & gt;  

लेकिन यह काम नहीं करता है आप जावास्क्रिप्ट के अंदर php का कार्यान्वयन कैसे कर सकते हैं जो कि स्वयं की javascript.php फ़ाइल में है?

यह नहीं है क्या आपको शायद लगता है कि ऐसा करता है यह काम करेगा, लेकिन PHP एक बार चला जाता है, जब पेज लोड होता है, हर बार जब जावास्क्रिप्ट फ़ंक्शन कहा जाता है।


Comments

Popular posts from this blog

iphone - How do I make a UIPickerView in a UIActionSheet -

java - Is there an object like a "Set" that can contain only unique string values, but also contain a count on the number of occurrences of the string value? -