Hi all i created a dynamic check box form. I let the user to select a few songs and once they click on submit all those values get passed to a second checkbox form. My first checkbox form data ouf of this query:
$query = "SELECT id,artist,track,album,title FROM files where album='$albumname' order by track";
The code beleow is part of my checkbox form.The values on bold are those that i need to display them in second page check box form. My problem is that i do not know how to pass those select checked box values to next page by using post method. I be happy if an expert show me how i can do it.Thanks
Note : the second form needs to be dynamic too since number of passed values are not the same each time!
Code:<form method="POST" action="./Members/AddToPlayList.php" name="mp3Play"> <tr> ?> while($row = mysql_fetch_assoc($result)) { <td bgcolor="#C0C0C0"><p align="center"><b><?=intval( $row['track'] );?></b></p> </td> <td bgcolor="#C0C0C0"><input type="checkbox" name="Id" value='<?=intval( $row['id'] );?>' /></td> <td bgcolor="#C0C0C0"><a href="javascript:newWindow('./mp3s/myWimpy.php?queryWhere=Id&queryValue=<?=strval( $row['id'] );?>')"><img src="images/Speaker.gif" alt="Listen to this Song" border="0" width="16" height="16" longdesc="Listen to this Song"></a> <?=strval( $row['title'] );?> </td> <td bgcolor="#C0C0C0"> <?=strval( $row['album'] );?> </td> <td bgcolor="#C0C0C0"><a href="javascript:newWindow('RateSong.asp?SongID=1')"><img src="images/RatIt.gif" alt="Rate This Song" border="0" width="100" height="22" longdesc="Rate This Song"></a></td> <td align="center" bgcolor="#C0C0C0">0 </td> <td bgcolor="#C0C0C0">coming Soon <!-- <a href="../site.php?songID=1&Song=Atash">Read </a>| <a href="./Members/WriteLyrics.php?SongId=1&Song=Atash">Write</a> --> </td> <? } //end of while




Reply With Quote