This commit is contained in:
2020-02-08 19:38:13 -05:00
parent abb77b4b01
commit 717193831d
5 changed files with 50 additions and 21 deletions
@@ -6,16 +6,18 @@
<div class="card-body">
<form class="form">
<input type="hidden" id='member_id' name='member_id' value="<?= $_SESSION["member_id"] ?>" />
<input type="hidden" id='page_id' name='page_id' value="<?= $page_id ?>" />
<div class="form-body">
<div class="form-group">
<label for="feedback1" class="sr-only">Note Title</label>
<input type="text" id="feedback1" class="form-control" placeholder="Title" name="title" value="<?= isset($title) ? $title : '' ?>">
<input type="text" id="feedback1" class="form-control" placeholder="Title" name="title" value="<?= isset($title) ? $title : '' ?>" required>
</div>
<div class="form-group">
<label for="feedback3" class="sr-only">Note Detail</label>
<textarea id="feedback3" rows="6" class="form-control" name="detail" placeholder="Note Detail"><?= isset($details) ? $details : '' ?></textarea>
<textarea id="feedback3" rows="6" class="form-control" name="detail" placeholder="Note Detail" required=""><?= isset($details) ? $details : '' ?></textarea>
</div>
</div>
@@ -41,9 +43,10 @@
var post_data = {
'member_id': form.member_id.value,
'title': form.title.value,
'detail': form.detail.value
'detail': form.detail.value,
'page_id': form.page_id.value
};
alert(1);
// alert(1);
// Get some values from elements on the page:
var url = "/member/addNotecard";
// Send the data using post