I have two select boxes. The first is populated from PHP:
$query="SELECT page_permissions.page_id,pages.page_name FROM page_permissions INNER JOIN pages ON page_permissions.page_id = pages.page_id WHERE page_permissions.user='" . $_SESSION['username'] . "'";
$result1 = mysql_query($query);
while($row = mysql_fetch_array($result1))
What I want to do is have two buttons, a "->" that will place the selected element from the first box into the second box and "<-" that will remove the item selected in the second box. Then, once the user is done adding elements into the second select box, I want to INSERT those values into my MySQL database using PHP. I have been strugging with this for about 8 hours now and realized it was time to ask for help. I'm having all kinds of issues with this (I can't get multiple 'submit' buttons to work without reloading the page wrong, etc.). Basically, I'm starting out in this and it's my first web development experience and it's not treating me well. I realize this is a question with a huge scope, so I made it worth alot of points and I can split them if you dont' have time to answer all the issues right at once.
Thanks ahead of time for your help.