Fsoft Posted December 21, 2008 Share Posted December 21, 2008 Hey Friends, Long time, almost three months I wasn't here on phpFreaks... Well but as if I ever need any help in programming phpFreaks and the staff is always here ! Well this time I need help in Javascript being honest I have no experiance in Javascript so this is why I am here ! so.addParam('flashvars','streamer=lighttpd&autostart=true&file=http://pakheart.com/tutorial1.flv'); Well in this line of code , as you can see it's in <javascript> format! Well, the problem is that from this entire code I want to use it in php get a variable called $tutorial1 ; and the variable when I echo it out the BOLD text should be echoed out, so it means $tutorial1 = "http://pakheart.com/tutorial1.flv"; If this was php I could do some thing but it's in Javascript and I know nothing about it so I don't know how to grab a particular info from a javascript line and putting into a variable .. Please help me, I will be very thankful to you, Badly waiting for answer, FAISAL! Link to comment https://forums.phpfreaks.com/topic/137916-javascript-reading-a-particular-text/ Share on other sites More sharing options...
Psycho Posted December 21, 2008 Share Posted December 21, 2008 I think you are saying you want the PHP variable $tutorial1 used for the file. echo "so.addParam('flashvars','streamer=lighttpd&autostart=true&file={$tutorial}');"; Link to comment https://forums.phpfreaks.com/topic/137916-javascript-reading-a-particular-text/#findComment-720837 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.