各位大大好
我想寫一個有關訂閱的網頁
<div class="" data-toggle="buttons">
<label class="btn btn-primary active">
<input style="display:none;" type="radio" onclick="" name="options" id="option1Y" autocomplete="off"
value="subscription" checked>已訂閱
</label>
<label class="btn btn-warning">
<input style="display:none;" type="radio" name="options" id="option2N" value="nosubscription" autocomplete="off">
<i class="fas fa-chalkboard-teacher"></i>訂閱
</label>
</div>
如果用form形式的話是必要有一個submit的按鈕
但是我希望是使用者按了就直接上傳到server裡儲存已訂閱的資訊
我也有用以下此方式直接呼叫PHP檔,但網頁就會顯示錯誤
onclick="document.write('<?php require_once "xxx.php"; ?>');
墾請各位大大解答,感謝