I have a box with a couple of entries based upon the ID of a table:
<ul id="sortable">
<?php do { ?> <li class="ui-state-default" id="<?php echo $row_Recordset1['entry']; ?>">
<?php echo $row_Recordset1['PartNo']; ?></li>
<?php } while ($row_Recordset1 = mysql_fetch_assoc($Recordset1)); ?>
I have defined the sortable jQuery:
$(function() {
$( "#sortable" ).sortable();
});
var newp = $("#sortable" ).sortable('toArray');
and what I want to do is simply to pass this array to the next page in the process of recording on the database:
window.location.href = "quotations_build_itemsorder2.php?newp[]="+newp;
I keep getting an empty array.
Help .... please!