Posted by Jerry Stuckle on 03/15/07 13:28
shror wrote:
> i want to add a midi file to my pages and i want to put two radio
> buttons so that on is on and the other is off so that the users can
> start or stop the file playing by choosing one of the radio buttons,
> but the problem is that i dont know how to do it.
>
> does any body know how this could be done
> Thanks in advance for your help
>
> shror
> www.s7els7.com
>
You can't do it in PHP. PHP is server side - it knows nothing about
buttons being clicked on the client until the user submits the form.
And once that form is submitted, PHP still can't affect the player on
the client machine. That would be a huge security hole.
You might be able to do it with javascript - but I doubt it. I haven't
looked into the api's for the various players, so I don't know what you
can and can't do client-side.
But why bother? Players have their own start and stop buttons.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
Navigation:
[Reply to this message]
|