我需要帮助将值从模态传递到另一个页面以更新到数据库。
这是我的剧本
$('#rejectbutton').click(function() {
// handle form processing here
alert('submit form');
$('form').submit();
});
和标记是这样的,
<div class="modal-body">
<div class="row">
<div class="col-md-12">
<div class="form-group">
This is the confirmation window to PASS all the Quality Control for, <br/><br/>
PROJECT : <b>'.$row['PROJECT_NAME'].'</b>
HEADMARK : <b>'.$row['HEAD_MARK'].'</b>
ID : <b>'.$row['ID'].'
</div>
</div>
</div><br/>
<div class="row">
<div class="col-md-12">
<div class="form-group">
<textarea class="form-control" placeholder="Reason for rejection" rows="2" required></textarea>
</div>
</div>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
<button type="button" name="rejectbutton" id="rejectbutton" class="btn btn-danger">Confirm REJECT!</button>
我需要做的是传递$ row [&#39; PROJECT_NAME&#39;],$ row [&#39; HEAD_MARK&#39;],$ row [&#39; ID&#39;]和processclass.php的文本区域。请帮我详细说明如何编写脚本。