<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<script src="http://code.jquery.com/jquery-latest.js"></script>
<script src="/js/jquery-ui-1.9.2.custom.js"></script>
<link type="text/css" href="css/custom-theme/jquery-ui-1.9.2.custom.css" rel="stylesheet" />
<style>
body{padding:15px;}
ul { list-style-type: none; margin: 0; padding: 0; margin-bottom: 10px; }
li { margin: 5px; padding: 5px; width: 150px; }
#sortable{ min-height: 200px;
width:250px;
background: #e6e6e6 url(/css/custom-theme/images/ui-bg_glass_75_e6e6e6_1x400.png) 50% 50% repeat-x;}
</style>
<script>
$(function() {
$( "#accordion" ).accordion({
header: " > div > h3 > input"
});
$( "#sortable" ).sortable({
revert: true
});
$( "#draggable li" ).draggable({
connectToSortable: "#sortable",
helper: "clone",
revert: "invalid"
});
$( "ul, li" ).disableSelection();
$("#trash").droppable({
accept: "#sortable li",
drop: function (event, ui) {
ui.draggable.hide("slow", function () {
$(this).remove();
verify()
})
function verify() {
var texts = [];
$("#sortable li").each(function (indx, element) {
texts.push($(element).text() + " ")
});
$(".out").html(texts)
}
}
})
});
</script>
</head>
<body>
<ul id="draggable">
<li id='aaccordion' class="ui-state-default">
<h3>Section 1</h3>
<div>
<input type="text" name="name"/>
</div></li>
<li id='aaccordion' class="ui-state-default"><h3>Section 1</h3>
<div>
<input type="text" name="name2"/>
</div></li></li>
</ul>
<form method="post">
<ul id="sortable">
<li id='aaccordion' class="ui-state-default">Уже готовый модуль</li>
</ul>
<input type="submit" name="go" value='Go'/>
</form>
<img src="http://www.specodegdaopt.ru/data/medium/korzina_dlya_musora_plats..jpg" alt="" id="trash" width="100" height="120">
<?php
if(isset($_POST['go'])){
echo $_POST['name'];
}
?>
</body>
</html>
вот код, что не то не так?