我试图让 id="RecipientInput" 处理我的 PHP 代码,但它似乎不起作用。在我这样做之后,我还想添加 reCAPTCHA,但我认为我对此无能为力。如果我无法弄清楚这一点,我就无法弄清楚如何从谷歌实现反垃圾邮件 API。
HTML
<form name="contactForm" id="contactForm" method="post" action="" novalidate="novalidate">
<fieldset>
<div class="form-field">
<input name="contactName" type="text" id="contactName" placeholder="Your Name" value="" minlength="2" required="" aria-required="true" class="full-width">
</div>
<div class="form-field">
<input name="contactEmail" type="email" id="contactEmail" placeholder="Your Email" value="" required="" aria-required="true" class="full-width">
</div>
<div class="form-field">
<input name="contactSubject" type="text" id="contactSubject" placeholder="Subject" value="" class="full-width">
</div>
<div class="form-field cl-custom-select">
<select class="full-width" id="RecipientInput">
<option value="Option 1">General Enquiry</option>
<option value="Option 2">Pivot</option>
<option value="Option 3">Napkin</option>
</select>
</div>
<div class="form-field">
<textarea name="contactMessage" id="contactMessage"placeholder="Your Message" rows="10" cols="50" required="" aria-required="true" class="full-width"></textarea>
</div>
我正在尝试在我的测试服务器上持续测试,但目前它给我带来了问题。
红糖糍粑