0
4-5時間後にPHPのために値を返さない削除フィールドの値を返しません提出確認jquery.uiダイアログ任意の助けに感謝...予想通り、PHPフォームをトリガー、グーグルや研究
<?php
if (isset($_POST['xxxx'])){
echo "POST DELETE <br />";
}else{
?>
<div id="dialog_confirm" title="Confirm Delete">Are you sure ?</div>
<form id='inputform' name='tablename' method='post' action='#' />
<input type='text' name='xxxx' value='22' />
<input type='submit' class='delete' name='delete' value='Delete' />
</form>
<script type='text/javascript'>
jQuery(document).ready(function(){
$('#inputform').submit(function(){
$("#dialog_confirm").dialog('open');
return false;
});
$("#dialog_confirm").dialog({
autoOpen: false,
resizable: false,
height:140,
modal: true,
buttons: {
"Delete all items": function() {
$(this).dialog("close");
window.inputform.submit();
},
Cancel: function() { $(this).dialog("close");}
}
});
});
</script>
。 – John