我试图让 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> 我正在尝试在我的测试服务器上持续测试,但目前它给我带来了问题。
1 回答
红糖糍粑
TA贡献1815条经验 获得超6个赞
您还没有name
为选择定义属性,name
属性应该在那里
代替
<select class="full-width" id="RecipientInput">
和
<select class="full-width" id="RecipientInput" name="RecipientInput">
- 1 回答
- 0 关注
- 132 浏览
添加回答
举报
0/150
提交
取消