以前の版
2025-06-14 12:19 時点における版
---
parent: About_en
title: Contact Us
tags: contact, inquiry
date: 2016-12-8
---
If you have any questions or concerns about this site, please let us know using the contact form below.
===
<form method="POST" action="/Service/mail-service.php" name="form" onsubmit="return CheckForm()">
<input type="hidden" name="subject" value="Message from a site visitor " />
<input type="hidden" name="returnTo" value="/Master/About/Thanks_en" />
<input type="hidden" name="destination" value="master" />
Name: <input type="text" name="name" /><br />
Email: <input type="email" name="email" /><br />
<textarea type="text" rows="10" name="message" style="width:100%;height:100%" placeholder="Please enter your message here..."></textarea>
<button type="submit">Submit</button>
</form>
<script>
function CheckForm() {
if (document.form.name.value == "") {
alert("Please enter your name.");
return false;
}
// if (!document.form.email.value.match(/^[A-Za-z0-9]+[\w-]+@[\w\.-]+\.\w{2,}$/)) { // a.b@mail.jp がはじかれる
// if (!document.form.email.value.match(/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/)) {
if (document.form.email.value == "") { // Note-2022-01-10: Modern browsers handle pattern checking, so we don't do it ourselves.
alert("Please check your email address.");
return false;
}
if (document.form.message.value == "") {
alert("Please enter your message.");
return false;
}
var otp = document.getElementsByName('otp').item(0).content;
var input=document.createElement('input');
input.name ='otp'; input.type='hidden'; input.value=otp;
document.form.appendChild(input);
var contentPath = document.getElementsByName('content-path').item(0).content;
input=document.createElement('input');
input.name='contentPath'; input.type='hidden'; input.value=contentPath;
document.form.appendChild(input);
return true;
}
</script>