0

我有一个 MySQL 数据库来存储我上传的所有音乐。

我有一个链接,列出了该艺术家的所有上传曲目。

艺术家 - 曲目名称 - 状态 [删除]

现在 [delete] 按钮链接到song_delete.php?id=<?php echo $row['song_id']; ?>.

我希望这将确认页面(song_delete)加载到模式中。

这是我的模态 HTML。

<div id="deleteMusic" class="reveal-modal medium">
<h2>Request to delete<span style="color:#F7D745;"> <?php echo $row['title']; ?></h2>
<p class="lead">Are you sure you want to delete this song? Please allow 2 full business weeks for deletion.</p>
<span style="float:right;"><a href="#" class="button close-reveal-modal cancelbtn">Cancel</a>    
<a href="#" class="button submitbtn">Submit</a>  </span>

<a class="close-reveal-modal">&#215;</a>
</div>
4

1 回答 1

0

以下内容应该满足您在此处找到的要求:http: //foundation.zurb.com/docs/components/reveal.html

使用 Ajax 内容触发显示模式

<button data-reveal-id="myModal" data-reveal-ajax="http://server/song_delete.php">
    Click Me and open Modal for confirmation
</button>

或者

<a href="http://server/song_delete.php" data-reveal-id="myModal" data-reveal-ajax="true">
      Click Me and open Modal for confirmation
</a>
于 2013-08-30T23:26:30.930 回答