MESB Membership Confirmation
Thank you for your participation in the Masticationpedia Ethical and Scientific Board (MESB). Please confirm your acceptance or decline of the role using the options below.
Your decision
<label for="mesb-name">Your full name:</label>
<input id="mesb-name" type="text" style="width:100%; padding:8px; border:1px solid #ccd4e0; border-radius:8px; margin-top:6px;" />
<label for="mesb-comments" style="margin-top:14px; display:block;">Optional comments:</label> <textarea id="mesb-comments" rows="4" style="width:100%; padding:8px; border:1px solid #ccd4e0; border-radius:8px;"></textarea>
<button onclick="sendMESBDecision('ACCEPT')"
style="background:#2e7d32; color:white; padding:10px 24px; border:none; border-radius:8px; cursor:pointer;">
✔️ I ACCEPT the membership
</button>
<button onclick="sendMESBDecision('DECLINE')"
style="background:#c62828; color:white; padding:10px 24px; border:none; border-radius:8px; cursor:pointer; margin-left:12px;">
❌ I DECLINE the membership
</button>
<script> function sendMESBDecision(action) {
const name = document.getElementById("mesb-name").value.trim();
const comments = document.getElementById("mesb-comments").value.trim();
if (!name) {
alert("Please enter your full name before submitting.");
return;
}
fetch("/MESB/mesb_accept_api.php", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({ name: name, action: action, comments: comments })
})
.then(response => response.json())
.then(data => {
document.getElementById("mesb-result").innerHTML =
"" + data.message + "";
})
.catch(error => {
document.getElementById("mesb-result").innerHTML =
"Error submitting your response.";
});
} </script>