getting checkbox values into an xml file using php dynamical
Posted: Mon Jan 12, 2009 11:28 pm
getting checkbox values into an xml file using php
Hi, I am very new to PHP.
songs.html contains a form where I have to select one or more check boxes.
(playlist.xml)
<?xml version="1.0" encoding="UTF-8"?>
<xml>
<track>
<path>song.mp3</path>
<title>Track 1 - Track Title</title>
</track>
<track>
<path>song.mp3</path>
<title>Track 2 - Track Title</title>
</track>
<track>
<path>song.mp3</path>
<title>Track 3 - Track Title</title>
</track>
<track>
<path>song.mp3</path>
<title>Track 4 - Track Title</title>
</track>
<track>
<path>song.mp3</path>
<title>Track 5 - Track Title</title>
</track>
<track>
<path>song.mp3</path>
<title>Track 6 - Track Title</title>
</track>
</xml>
(embedded code for my player)
<script type="text/javascript" src="swfobject.js"></script>
<div id="flashPlayer">
This text will be replaced by the flash music player.
</div>
<script type="text/javascript">
var so = new SWFObject("playerMultipleList.swf", "mymovie", "295", "200", "7", "#FFFFFF");
so.addVariable("autoPlay","no")
so.addVariable("playlistPath","playlist.xml")
so.write("flashPlayer");
</script>
My aim is that when I open songs.html it will contain a form with checkboxes to select songs.
After selecting checkboxes, the values should be inserted into the playlist.xml file.
<path>**song.mp3**</path>
<title>**Track 3 - Track Title**</title>
The path and title values should be changed dynamically when I select any checkbox.
Please give me the code for songs.html, playlist.xml and tell me how to open the embedded flash player in a new window.
Hi, I am very new to PHP.
songs.html contains a form where I have to select one or more check boxes.
(playlist.xml)
<?xml version="1.0" encoding="UTF-8"?>
<xml>
<track>
<path>song.mp3</path>
<title>Track 1 - Track Title</title>
</track>
<track>
<path>song.mp3</path>
<title>Track 2 - Track Title</title>
</track>
<track>
<path>song.mp3</path>
<title>Track 3 - Track Title</title>
</track>
<track>
<path>song.mp3</path>
<title>Track 4 - Track Title</title>
</track>
<track>
<path>song.mp3</path>
<title>Track 5 - Track Title</title>
</track>
<track>
<path>song.mp3</path>
<title>Track 6 - Track Title</title>
</track>
</xml>
(embedded code for my player)
<script type="text/javascript" src="swfobject.js"></script>
<div id="flashPlayer">
This text will be replaced by the flash music player.
</div>
<script type="text/javascript">
var so = new SWFObject("playerMultipleList.swf", "mymovie", "295", "200", "7", "#FFFFFF");
so.addVariable("autoPlay","no")
so.addVariable("playlistPath","playlist.xml")
so.write("flashPlayer");
</script>
My aim is that when I open songs.html it will contain a form with checkboxes to select songs.
After selecting checkboxes, the values should be inserted into the playlist.xml file.
<path>**song.mp3**</path>
<title>**Track 3 - Track Title**</title>
The path and title values should be changed dynamically when I select any checkbox.
Please give me the code for songs.html, playlist.xml and tell me how to open the embedded flash player in a new window.