php, чтобы добавить песни на страницу проверки

хорошо, я привязываюсь, чтобы установить флажок на моем столе, когда он будет проверен и отправлен, он перенаправит меня на страницу checkout.php, а затем отобразит песни, которые были отправлены. мой код до сих пор

таблица страниц

<form action="checkout.php" method="POST"> <input type="submit" value="Submit"> </form> </div> <body> <div id="col2"> <?php error_reporting(~E_ALL); $conn = pg_connect("host=db.dcs.aber.ac.uk port=5432 dbname=teaching user=csguest password=r3p41r3d"); $res = pg_query ($conn, "SELECT artist, composer, genre, title, album, label, price, description FROM music"); print'<form action="checkout.php" method="POST"><table>'; print "<table border='1'>"; print "<th></th><th>Artist</th><th>Composer</th><th>Genre</th><th>Title</th><th>Album</th><th>Label</th><th>Price</th><th>Description</th></tr>"; while($getColumn = pg_fetch_row($res)) { print "<tr>"; print '<td><input type="checkbox" name="cart_items" value="1"></td>'; $active = isset($_POST['cart_items']) && $_POST['cart_items'] ? "1" : "0"; for ($j = 0; $j < pg_num_fields($res); $j++) { print "<td>" . $getColumn[$j] . "</td>"; } print "</tr>"; } print '<input type="hidden" name="name"/>'; print '</table>' ?> 

контрольная страница

 <?php //print_r($_POST);//print out the whole post $cart_items = $_POST['cart_items']; ?> 

Solutions Collecting From Web of "php, чтобы добавить песни на страницу проверки"