Im making a php site that has music on it. What I am trying to do is have a checkbox that toggles looping on and off. My question is: What html code do I put so that the value pair will be transfered to a php file? I dont want to use a submit button. I want the data to be transfered when somebody clicks on a song (a href). Im not sure where to put the <form> tag either, but i do know the attributes.
please help
Im sorry if I was supposed to post this in the html forum, not the php forum, but this question involves both codes. feel free to move this topic elsewhere.so you have to reload the page if they click on a checkbox to change the loopingI didnt think of that, but now that you have brought that to my attention, that would work much better.
My original idea was for the user to select the box before they selected the song. So, when they selected the song the loop variable would be included in the a href, therefore looping the song if the box was checked, and not looping if the box wasnt.
Either one would be great, but I would prefer the former over the latter.ok, eitehr wasy you still have ot have a form button to submit the page. you can't use a link as the page is done loading and php can't run after that. so you give them the options and then they submit sending to the same page but playing the song as they requested and the loop they wanted. pretty easy
please help
Im sorry if I was supposed to post this in the html forum, not the php forum, but this question involves both codes. feel free to move this topic elsewhere.so you have to reload the page if they click on a checkbox to change the loopingI didnt think of that, but now that you have brought that to my attention, that would work much better.
My original idea was for the user to select the box before they selected the song. So, when they selected the song the loop variable would be included in the a href, therefore looping the song if the box was checked, and not looping if the box wasnt.
Either one would be great, but I would prefer the former over the latter.ok, eitehr wasy you still have ot have a form button to submit the page. you can't use a link as the page is done loading and php can't run after that. so you give them the options and then they submit sending to the same page but playing the song as they requested and the loop they wanted. pretty easy