import variables from php/html to km
Hi there,
I want to build a php-based media-player which reads certain files from a directory (.mp3 for example). I have realised this in php so far, but
i don´t know how to submit/post/import variables from the command line/url
or rather from php´s resulting html INTO the playing-Koolmoves-swf, like
player.swf?dir=nameofsubdir/&file=nameofsound.mp3
In PHP for example i import and display variables this way:
<?php echo$_GET['subdir']; ?><?php echo$_GET['nameofsound']; ?>
... is there an analog function in KM?
Searching the forum leaded me to Loadvars which loads variables only
from a -separate file- ... this won´t help here.
any ideas / tips for me?
p.s.:
I have found these lines by necro searching the km-forum... but got no idea to handle..
"..
Try to use
loadVariables("yourpage.asp","GET"); (to receive) and
loadVariables("yourpage.asp","POST"); (to send)
instead of "getURL".
Also,don't forget that your dynamic page (ASP in this case) must be able to "format" as text array the output data:
var1=OWEN&var2=AUS&...&varn=END
cheers .."
these threads match the problem as well:
http://www.flashkit.com/board/showth...t=command+line
or this
http://www.flashkit.com/board/showth...t=command+line