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! Quote Link to comment 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}');"; Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.