$back = mysql_query("SELECT * FROM student WHERE roll_no=".$_POST['roll']) or die(mysql_error());
$backup = mysql_fetch_array($back) or die(mysql_error());
<form method='post'>
<input type='submit' name='undo' value='Undo'
onsubmit="return confirm('Are you sure you want to rollback deletion of
<?php echo $backup['name'];?>
from
<?php echo $backup['post'];?>
?')"/>
</form>
如何用上述参数替换 javascript 确认与 jquery ui 对话框。