Jump to content

link to do a command


flemingmike

Recommended Posts

hello, i was wondering if there is a way to have a link do a command, but not to goto a page.  my reason being is that the music player software i use has a built in web server and if you goto a certain page, it will process that command.  so right now, i have an iframe that i do a target to.  its pretty mickey mouse, but its what i knew how to do.

 

thanks

Link to comment
https://forums.phpfreaks.com/topic/210552-link-to-do-a-command/
Share on other sites

here is my iframe

 

<iframe name="control" width="1" height="1" scrolling="no" frameBorder="0" src=" "></iframe>

 

and here is example of a button to start playing

 

<a target="control" href="http://'.$mp[host].':'.$mp[port].'/1.0/?method=player.play">
<img border="0" src="images/Button-Play-icon.bmp" width="64" height="64">

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.