私は現在ボタンで開くモーダルを持っており、変数を渡して自分のデータベースから動的データを取り込む方法がわからないようです。私はモーダルに送信する必要があるURLにいくつかの変数があります。モーダルウィンドウへのリンクで変数を渡す
本当に必要なのは、モーダルを開くボタンをhrefリンクに置き換えることです。
Modal
<!---BUTTON THAT OPENS MODAL--->
<button onclick="document.getElementById('id01').style.display='block'" style="width:auto;">Login</button>
<!---END BUTTON--->
<!---MODAL--->
<div id="id01" class="modal">
<form class="modal-content animate" action="action_page.php">
<div class="container">
\t <div class="container" style="background-color:#f1f1f1">
<button type="button" onclick="document.getElementById('id01')
.style.display='none'" class="cancelbtn">Cancel</button>
<span class="psw">Forgot <a href="#">password?</a></span>
</div>
</form>
</div>
<!---END MODAL--->
This is what I need to open the modal with (or similar) and pass the variables to it.
<a href="#CGI.SCRIPT_NAME#?viewas=#dtDay#&id=#qEventSub.id#" title="#DateFormat(dtDay, "mmmm d, yyyy")#" style="color: white;"onclick="document.getElementById('id01').style.display='block'" style="width:auto;>#Day(dtDay)#</a>
_sentがmodal_に何を意味するのですか?どのように/どこでそれらを使用するのですか? –